Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

Блог пользователя ramJha

Автор ramJha, история, 4 года назад, По-английски

I use sublime text to code in c++ for windows and i don't know how to fix infinite loop because my system gets freeze whenever it encounter infinite loop and only way to fix is to restart the pc which creates lots of problem during the contest time.

I came through this blog of preda2or but unable to implement it. I wanted to know if there's any additional approach to fix this problem and anyone who has implement above blog.

Thanks in advance:)

PS:I use input.txt and output.txt as input and output file.

  • Проголосовать: нравится
  • -9
  • Проголосовать: не нравится

»
4 года назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

Instead of "bash" use "cmd" then the Sublime build will work for you. Or don't use Output.txt . In case of infinite loop it will print infinitely ( if there is a print statement ) and your drive will get full. Use only Input.txt then on compile and run ,output will pop up in cmd.

»
4 года назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

There is a 'Cancel Build' option in Tools for it. If that doesn't work open task manager, search for your program and close it manually. :D