ログイン
新規登録
AtsuoCoder Petrozavodsk Contest 001
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 568e039d-86be-408b-a68a-33675a336302
コード
#include <bits/stdc++.h> using namespace std; int main() { vector<int> A; int Q,X,T; cin>>Q; for(int i=0;i<Q;i++){ cin>>T; if(T==1)cin>>X; if(T==1){ *S.end() = X; } else if(T==2){ cout<<S.at(0)<<endl; S.erase(S.at(0)); } else if(T==3){ cout<<S.size()<<endl; } } }
結果
問題
点数
言語
結果
実行時間
メモリ
E - Q
0
C++
WJ
0 ms
0 KiB
コンパイルエラー
Main.cpp: In function 'int main()': Main.cpp:13:13: error: 'S' was not declared in this scope 13 | *S.end() = X; | ^ Main.cpp:16:19: error: 'S' was not declared in this scope 16 | cout<<S.at(0)<<endl; | ^ Main.cpp:20:19: error: 'S' was not declared in this scope 20 | cout<<S.size()<<endl; | ^