Hello everyone. I use system("cls");
function to clear the output screen on my IDE. But when I submit my solutions in CodeForces having system("cls");
function, it gives Runtime Error. I have used other CP sites and there's no issue with system("cls");
I would just like to know why.
What IDE are you using?
std::system
allows you to invoke operating system commands, and do many bad things other than clearing the screen.Why would the Codeforces server allow your code to have system call permissions? If allowed you may even cause a fork bomb.