Help with a runtime error in C++ code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Help with a runtime error in C++ code

Please find the code with the description of the problem- https://code.sololearn.com/cs4WNCnKQLwi/?ref=app I don't know why the error is occured?

7th Apr 2018, 6:00 PM
Sachin Artani
Sachin Artani - avatar
9 Answers
+ 5
Well then, i'm agreed with john Wells. because its seems fine to me...
7th Apr 2018, 11:54 PM
ZΛRTHΛИ
ZΛRTHΛИ - avatar
+ 4
Google Code Jam recently put out: We apologize for any platform delays that may have been experienced earlier. The situation seems to be normalized now and we encourage you to get back in there.
7th Apr 2018, 7:05 PM
John Wells
John Wells - avatar
+ 4
I suggest ignoring any errors and keep on retrying until it works. Your code seems fine and should work. Server load causes errors due to timeout that retries will eventually succeed.
7th Apr 2018, 7:13 PM
John Wells
John Wells - avatar
+ 3
What do you expect about the output...?
7th Apr 2018, 6:21 PM
ZΛRTHΛИ
ZΛRTHΛИ - avatar
+ 3
John Wells , thanks. I will try again. But there maybe something erroneous because I fought segmentation error 11, when I was trying in an online code editor.
7th Apr 2018, 9:13 PM
Sachin Artani
Sachin Artani - avatar
+ 1
hello sir I just kidded with mitali jadhavrao and she is saying you to report me leave that and help your children's
7th Apr 2018, 7:17 PM
Raj Kumar
Raj Kumar - avatar
+ 1
I want to become a game developer only with Python isn't it better
7th Apr 2018, 7:17 PM
Raj Kumar
Raj Kumar - avatar
+ 1
@Vecroz, The same output I'm getting here is what I expect and Google codejam expect.
7th Apr 2018, 9:11 PM
Sachin Artani
Sachin Artani - avatar
0
I rectified the issue, it was a logical error that was causing the runtime error for some compilers. Now I am facing TIME LIMIT EXCEEDED.
8th Apr 2018, 6:15 AM
Sachin Artani
Sachin Artani - avatar