- 1
Why Sololearn cannot run my code but the IDE I use for practice can run it properly?
This is my latest code: https://code.sololearn.com/c7ZqSl4OTykv This works properly on my IDE (Codeblocks). But whenever I execute the same code here, it shows some unexpected errors. Can anyone know what to do to run it here? Note: It is an interactive program.
1 Answer
+ 4
you have two non-standard libraries included in your code would only run by windows or MS-DOS. you need
Conio.h is a C header file used mostly by MS-DOS compliers to provide input and output, I advice you not to use that complier.
windows.h is a non-standard library which can be complied only in windows.
and as for the input, code playground executes the code from the server so you need to tell the user from the beginning what type of input the user need to type to get the expected output (through comments)
you didn't defined a data type at func1()'s implementation.
also, don't make me to get started with this
"system("CLS");"
http://www.cplusplus.com/articles/j3wTURfi