+ 1

Which is error in my cpp(Holi) program ¿

->Time limit exceeded

20th Mar 2019, 11:55 AM
Kumavat Vijay
Kumavat Vijay - avatar
2 Answers
+ 3
Remove getch(); getch(); prompts a user to press a character. So the program is waiting for user input until time exceeded This function is often used when you execute programs in terminal. With this way you keep the terminal open in order to check output.
20th Mar 2019, 11:59 AM
Prokopios Poulimenos
Prokopios Poulimenos - avatar
+ 2
Ok, i understand tnx you...😊👍
20th Mar 2019, 12:05 PM
Kumavat Vijay
Kumavat Vijay - avatar