ゆるふわ競技プログラミングオンサイト at FORCIA #8
コンテスト日時
2025/05/31 (Sa) 14:15 - 16:30
提出 #24609
提出日時07/20 15:58:11
問題C: ADD MUL MAX
ユーザiica
言語C++20 (g++ 12.2.0)
得点0
結果
CE

コンパイルエラー

./Main.cpp: In function 'int main(int, char**)':
./Main.cpp:113:21: error: 'strcmp' was not declared in this scope
  113 |     if(argc >= 2 && strcmp(argv[1], "-debug") == 0) DEBUG = true;
      |                     ^~~~~~
./Main.cpp:6:1: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
    5 | #include <functional>
  +++ |+#include <cstring>
    6 | using namespace std;
./Main.cpp:114:21: error: 'strcmp' was not declared in this scope
  114 |     if(argc >= 2 && strcmp(argv[1], "-gen") == 0) return gen();
      |                     ^~~~~~
./Main.cpp:114:21: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
./Main.cpp:115:21: error: 'strcmp' was not declared in this scope
  115 |     if(argc >= 2 && strcmp(argv[1], "-jury") == 0) return jury();
      |                     ^~~~~~
./Main.cpp:115:21: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?