NoticeMeSenpai's blog

By NoticeMeSenpai, history, 3 years ago, In English

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.

  • Vote: I like it
  • -20
  • Vote: I do not like it

| Write comment?
»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

What IDE are you using?

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

std::system allows you to invoke operating system commands, and do many bad things other than clearing the screen.

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Why would the Codeforces server allow your code to have system call permissions? If allowed you may even cause a fork bomb.