Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

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

Автор KaTiWarn, история, 16 месяцев назад, По-английски

Normally, competitive programming helper is a very convenient platform for solving competitive programming problems. However, I faced a new problem : when I "run" my testcases (press the green button at the left screen in the picture), the word "SIGTERM" appears all the time. Normally, from my observation, SIGTERM appears only when the code was crashed (popping empty data structure or divide zero). However, I don't give up and try to use code runner (vscode extension), but I have to wait around 5-10 seconds when using terminal.

Now, these difficulties prevent me from achieving good performance when doing codeforces contest. Does anyone face these kinds of problems before? Can anyone help me?

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

»
16 месяцев назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится

Auto comment: topic has been updated by KaTiWarn (previous revision, new revision, compare).

»
16 месяцев назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится

yes I am also facing some issues with it, some times I don't get any output, sometimes it shows "passed" even the expected output isn't same ..Do you know why it happens and any other alternative for it ? Thank You.

»
16 месяцев назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

In this case, your code is TLEing (you can see from the "Timed Out" right next to "Failed"). Maybe you need to put input for it to work?

Also a word of warning for those using this extension: if you map a keyboard shortcut to running the code, and change one of the input tests, then using the keyboard shortcut won't update the tests. For that you have to press the Run button manually.

  • »
    »
    16 месяцев назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    No, whether or not I put input into results in "Timed Out" and "SIGTERM".

»
16 месяцев назад, # |
  Проголосовать: нравится +6 Проголосовать: не нравится

I think there may be case that upperbound for tle in cph setting is set to 0ms. You can fix it in cph settings .

»
16 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Just run it again

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

This problem mainly occurs due to antivirus.I have faced this in past a lot. Disable all the antivirus which are active in your laptop or computer. Like in HP laptop, McAfee Antivirus remains active from beginning . This will probably solve your error.

»
16 месяцев назад, # |
  Проголосовать: нравится +10 Проголосовать: не нравится

Just stop using IDE for compiling. Just use plain old powershell or cmd ,they are faster than any IDE.

»
16 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Because of Antivirus Protection.

  • »
    »
    16 месяцев назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    I have already disabled my MCafee antivirus; however, everything still remained the same.

»
16 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Just turn off real time scan in your Antivirus.

  • »
    »
    16 месяцев назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    I have already disabled my MCafee antivirus; however, everything still remained the same.

»
16 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

This is what VS Code sent me : Are multiple VSCode windows open? CPH will work on the first opened window. CPH server encountered an error: "listen EADDRINUSE: address already in use :::27121" , companion may not work. However, I opened only one window ??????

»
7 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

CPH gives SIGTERM when some of your conditions(if else),or other implementations are not correct. So just check your code and find out the mistake ....

»
7 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

just learn VIM. You will never have these issues.