All Questions
Tagged with fatal-error arrays
34
questions
-3
votes
1
answer
119
views
Fatal error occurring in Javascript forming array [closed]
I want to make a function that forms an array based on the user input so I write the javascript as below but it only returns a fatal error. What is wrong with this code? I try to match with the book's ...
-1
votes
4
answers
1k
views
how to use array.count in swift for-in loop
I'm a beginner in swift (probably) and I am learning how to use arrays I was trying to make a for-in loop with a loop amount of 1...array.count, but instead I get an error of:
Fatal error: Index out ...
0
votes
2
answers
392
views
SwiftUi : Index out of range on an Array issued from Firestore
I'm new here and learning how to code with SwiftUi
I'm trying to figure out why I can't access to my array values issued from Firestore.
The class below read the datas from Firestore and fill an ...
0
votes
0
answers
79
views
PHP Fatal error: Cannot use empty array elements in arrays in CENSORED on line 180 [duplicate]
I was searching on stackoverflow about my problem but I didn't found any good answer.
I have this problem: When I try to run my code
PHP Fatal error: Cannot use empty array elements in arrays ...
0
votes
1
answer
50
views
I am able to access dataArray from view controller file but having an error Fatal error: Index out of range?
This is my code I am able to download data from API and data is also stored in dataArray but if this array is accessed from another view controller or within this class only it shoes error.
import ...
-2
votes
1
answer
104
views
Fatal error : Cannot use [] for reading using smarty template
I am building a ticket support application, and the problem I am having since this weekend, is that when I head to the information page, I land onto the following error:
https://i.sstatic.net/miXEZ....
1
vote
1
answer
30
views
Maximum executiontime exceeded when printing array
I have the following code, which prints all combinations of the given numbers. It returns a fatal error when $numbers contains two equal numbers.
I get the following error:
Fatal error: Maximum ...
0
votes
2
answers
223
views
Fatal Error index out of range swift 3 SpriteKit
I am trying to make a two player shooter game. I am trying to destroy bullets that you have already used. In the update I am using the code
var bulletsChecked = 0
for b in bullets {
...
0
votes
1
answer
102
views
Trying to create a grid map in an array returns a fatal memory error in php
I am working on a random RPG Map generator that get's inserted into the database for later retrieval. Basically the user will enter some minor details on the form and specify how many tiles of each ...
-5
votes
1
answer
323
views
Array index out of range swift 3
I am getting the angle between adjacent points in hull array and storing it in angles array.But getting fatal error for index out of range. What am I doing wrong here?var angles = [Double]()
for ...
1
vote
1
answer
2k
views
Fatal error: Index out of range (Arrays)
I very new to Swift and programming in general, so I can't figure out where is the problem. Tried to find the answer in the existing topics - couldn't. Thanks in advance.
func smartAssigning(names: [...
0
votes
1
answer
51
views
Fatal error getId() on a non-object called in an array of objects
I have a fatal error (call to getId() on a non-object) in this code :
$users[] = $em->getRepository(Tutore::class)->findAll();
foreach ($users as $user) {
$colle = $em->...
6
votes
1
answer
263
views
How to make big array (26000 x 26000) using PHP?
i try to make array with PHP. The dimension of the array is 26000 x 26000. Is it possible to make array that big? I already try to make an array with dimension 10000 x 10000 but the program keep ...
1
vote
1
answer
402
views
Swift fatal error: Index out of range
LeetCode Easy 88 Merge Sorted Array
Question:
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.
Note:
You may assume that nums1 has enough space (size ...
0
votes
2
answers
62
views
Calling a function that is inside another function
I have following files:
arrayLoader.php
chooseProgram.php
I want to call a function from chooseProgram.php that is inside another function in arrayLoader.php.
Here's the error message I'm getting:
...