+ 1

Memory Limit Exceeded?

So I was running this code: https://code.sololearn.com/cEtxUx5P0jg7/?ref=app I used 2 to 8. Got a strange error that reads "Memory Limit Exceeded" I have only managed to get this error once. Why did I receive this error? Is this just a sololearn glitch? Or should I expect these kinds of errors in all future c++ programs?

11th Oct 2018, 12:37 PM
Daniel Cooper
Daniel Cooper - avatar
5 Réponses
+ 2
I do not see errors in the code, I think it was a sololearn problem
11th Oct 2018, 12:42 PM
Daniel Holmes
Daniel Holmes - avatar
+ 2
Sololearn only handles a limited amount of memory when processing code.
11th Oct 2018, 1:37 PM
Joe McMillan
Joe McMillan - avatar
+ 1
I don't know precisely but it's only my theory.
11th Oct 2018, 2:06 PM
Joe McMillan
Joe McMillan - avatar
0
Joe McMillan, You want to say that the memory may not be enough for 7 iterations and for storage 3 int32 variables?)
11th Oct 2018, 1:42 PM
Daniel Holmes
Daniel Holmes - avatar
0
It's most likely a SoloLearn glitch. I really just wanted to know weather it was, or maybe these kind of random errors happen outside of SoloLearn.
11th Oct 2018, 2:45 PM
Daniel Cooper
Daniel Cooper - avatar