Solution to " Return code is not 0" prompt | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Solution to " Return code is not 0" prompt

I composed a sample code on CppDroid( to get practice at typing codes) and when i tried to execute it I got a "Return code is not 0" response. The person that created it used it on a Linux system if that helps...any suggestions?

12th Oct 2016, 8:12 PM
dlack
dlack - avatar
4 Answers
+ 2
It's hard to tell without seeing any code, maybe main didnt return 0.
13th Oct 2016, 1:45 AM
Clocktown
+ 1
may be u can used getch(); but must declare in header file #include<conio.h>
13th Oct 2016, 12:04 PM
Rasheed Khan
Rasheed Khan - avatar
0
try to change "int main " to void main and compile. Okay? plz maje sure to like my posts its of great help to encourage me.
13th Oct 2016, 5:03 AM
THE.GEEK
THE.GEEK - avatar
0
I am practicing to code in CppDroid and whenever I include iostream.h file in my code it shows (return code is not 0) and if I remove that I can't use the cin function
6th Dec 2020, 5:31 AM
Dhairya Dubey