Using warning flags with CPH stops the code from executing (VSCode)

Правка en1, от the_commentor, 2021-12-14 00:04:02

TLDR; Would like to use -Wall -Wextra -O2 flags without the warnings interrupting CPH testcases.

Recently, I installed VSCode and was too lazy to set up warning flags. But it came back to bite me and I failed to solve a problem due to an avoidable bug if I had the -Wall flag.

I then proceeded to set up the flags in CPH, but I soon noticed an issue. The warnings would stop the testcases from providing an output even if the code was perfectly fine.

Take this following code for example

```#include <bits/stdc++.h> using namespace std;

int main() { for (int i = 0; i < 5; i++) cout << i << " "; cout << endl; for (int i = 5; i < 9; i++) cout << i << " "; cout << endl; }```

Теги vscode, cph, bug

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en5 Английский the_commentor 2021-12-14 00:10:12 0 (published)
en4 Английский the_commentor 2021-12-14 00:09:36 14
en3 Английский the_commentor 2021-12-14 00:08:44 5
en2 Английский the_commentor 2021-12-14 00:08:28 405
en1 Английский the_commentor 2021-12-14 00:04:02 772 Initial revision (saved to drafts)