0
What is wrong with this code. Can anyone solve this code.
2 Answers
+ 2
1) \n should be inside double quotes
2) comment getch() it doesn't needed in sololearn compiler
3) void error just warning ignore it
+ 2
About the warning:
Good Practice recommends main function to return an int. It's great for status codes - they inform the caller about errors.
For you to follow good practice from now on, just change main type to int, and return zero at its end.