Submission #00150
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 | #include<iostream> using namespace std; int main(){ int n,q;cin>>n>>q; int a[n]; map< int , int >m; for ( int i=0;i<n;i++){ cin>>a[i]; } for ( int i=0;i<1000000000;i++){ if (m[i]); } } |
ステータス
項目 | データ |
---|---|
問題 | 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]); ^
セット
セット | 得点 | Cases |
---|
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|