ログイン
新規登録
AtsuoCoder Petrozavodsk Contest 001
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 de6a6ad8-42ad-4b32-8408-b79dd3b1c136
コード
#include <bits/stdc++.h> using namespace std; int main() { pueue<int> A; int Q; cin >> Q; int T; for(int i = 0;i < Q;i++) { cin >> T; if(T == 1) { int x; cin >> x; push(x); }else if(T == 2) { cout << A.front() << endl; A.pop(); }else if(T == 3) { cout << A.size() << endl; } } }
結果
問題
点数
言語
結果
実行時間
メモリ
E - Q
0
C++
WJ
0 ms
0 KiB
コンパイルエラー
Main.cpp: In function 'int main()': Main.cpp:6:3: error: 'pueue' was not declared in this scope 6 | pueue<int> A; | ^~~~~ Main.cpp:6:9: error: expected primary-expression before 'int' 6 | pueue<int> A; | ^~~ Main.cpp:17:5: error: 'push' was not declared in this scope 17 | push(x); | ^~~~ Main.cpp:20:13: error: 'A' was not declared in this scope 20 | cout << A.front() << endl; | ^ Main.cpp:24:13: error: 'A' was not declared in this scope 24 | cout << A.size() << endl; | ^