Submission #00152
ソースコード
ステータス
| 項目 |
データ |
| 問題 |
0005 - 形式データ処理 |
| ユーザー名 |
ナタ
|
| 投稿日時 |
2021-07-28 11:40:02 |
| 言語 |
C++ |
| 状態 |
Compile Error |
| 得点 |
0
|
| ソースコード長 |
720 Byte |
| 最大実行時間 |
-
|
| 最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp: In function ‘int main()’:
./Main.cpp:8:47: error: ‘>>’ should be ‘> >’ within a nested template argument list
priority_queue<int,vector<int>,greater<int>> q;
^~
> >
./Main.cpp:11:11: error: ‘class std::priority_queue<int, std::vector<int>, std::greater<int> >’ has no member named ‘emplace’
q.emplace(p[i][0]);
^~~~~~~
./Main.cpp:12:11: error: ‘class std::priority_queue<int, std::vector<int>, std::greater<int> >’ has no member named ‘emplace’
q.emplace(p[i][1]);
^~~~~~~
./Main.cpp:13:11: error: ‘class std::priority_queue<int, std::vector<int>, std::greater<int> >’ has no member named ‘emplace’
q.emplace(p[i][2]);
^~~~~~~
セット
テストケース