0

What is wrong with this code. Can anyone solve this code.

https://code.sololearn.com/c7S4UNk2CNvV/?ref=app

9th Nov 2022, 1:38 AM
Nibir Nath
Nibir Nath - avatar
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
9th Nov 2022, 1:48 AM
AzhagesanăƒŸ(✿)
AzhagesanăƒŸ(✿) - avatar
+ 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.
9th Nov 2022, 2:27 AM
Emerson Prado
Emerson Prado - avatar