提出 #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>'?