Submission #00083


ソースコード

ステータス

項目 データ
問題 0011 - Number-Collection
ユーザー名 Ksansansan
投稿日時 2025-06-06 17:42:24
言語 C++
状態 Compile Error
得点 0
ソースコード長 372 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./Main.cpp: In function ‘int main()’:
./Main.cpp:7:5: error: ‘unordered_map’ was not declared in this scope
     unordered_map<int,int>m;
     ^~~~~~~~~~~~~
./Main.cpp:7:5: note: ‘std::unordered_map’ is only available from C++11 onwards
./Main.cpp:3:13: error: expected primary-expression before ‘long’
 #define int long
             ^~~~
./Main.cpp:7:19: note: in expansion of macro ‘int’
     unordered_map<int,int>m;
                   ^~~
./Main.cpp:11:9: error: ‘m’ was not declared in this scope
         m[a]++;
         ^
./Main.cpp:18:15: error: ‘m’ was not declared in this scope
         cout<<m[v]<<"\n";
               ^

セット

セット 得点 Cases

テストケース

ファイル名 状態 実行時間 メモリ使用量 #