Submission #00150
ソースコード
ステータス
| 項目 |
データ |
| 問題 |
0005 - A lot of lamps |
| ユーザー名 |
ei2331
|
| 投稿日時 |
2024-07-18 15:41:34 |
| 言語 |
C++17 |
| 状態 |
Compile Error |
| 得点 |
0
|
| ソースコード長 |
189 Byte |
| 最大実行時間 |
-
|
| 最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp: In function ‘int main()’:
./Main.cpp:6:1: error: ‘map’ was not declared in this scope
map<int,int>m;
^~~
./Main.cpp:6:1: note: ‘std::map’ is defined in header ‘<map>’; did you forget to ‘#include <map>’?
./Main.cpp:2:1:
+#include <map>
using namespace std;
./Main.cpp:6:1:
map<int,int>m;
^~~
./Main.cpp:6:5: error: expected primary-expression before ‘int’
map<int,int>m;
^~~
./Main.cpp:11:4: error: ‘m’ was not declared in this scope
if(m[i]);
^
セット
テストケース