Submission #00093
ソースコード
ステータス
項目 |
データ |
問題 |
0006 - 宝集め |
ユーザー名 |
Ryo
|
投稿日時 |
2024-07-18 15:12:03 |
言語 |
C++17 |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
527 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp: In function ‘int main()’:
./Main.cpp:3:5: error: ‘priority_queue’ was not declared in this scope
priority_queue<long long,vector<long long>,greater<long long>>s;
^~~~~~~~~~~~~~
./Main.cpp:3:20: error: expected primary-expression before ‘long’
priority_queue<long long,vector<long long>,greater<long long>>s;
^~~~
./Main.cpp:6:5: error: ‘cin’ was not declared in this scope
cin>>n>>m;
^~~
./Main.cpp:6:5: note: suggested alternative:
In file included from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/iostream:60:18: note: ‘std::cin’
extern istream cin; /// Linked to standard input
^~~
./Main.cpp:13:13: error: ‘s’ was not declared in this scope
s.push(a);
^
./Main.cpp:20:13: error: ‘cout’ was not declared in this scope
cout<<z<<"\n";
^~~~
./Main.cpp:20:13: note: suggested alternative:
In file included from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/iostream:61:18: note: ‘std::cout’
extern ostream cout; /// Linked to standard output
^~~~
セット
テストケース