LoginSignup
1
1

More than 1 year has passed since last update.

Visual studio codeのC++で、問題がないのに問題が出まくる問題の対処

Posted at

問題

・競プロでVisual Studio Code & C++を使っている
・VScodeをアップデートすると、今まで大丈夫だったコードに問題が吐かれまくってうざい
スクリーンショット 2022-03-27 8.07.34.png

対応方法

VScodeの設定画面を開き、検索からc++を入れ、以下の項目Cpp Standardを見つける
スクリーンショット 2022-03-27 8.10.16.png

これがデフォルトだと空欄になっているが、c++17を指定すると、問題が消えた。

なぜ...? :thinking:

Macのゴミコンパイラ (gccのふりをしたClangとか)の影響なんでしょうか...
有識者が居られたらご教示いただけると。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1