ログイン
新規登録
AtsuoCoder Waseda Tour Finals 2025
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 6aa0c81e-c716-4df8-b9af-46cc520d2fe2
コード
#include <iostream> #include <vector> using namespace std; int main() { int n; cin >> n; vector<int> a(n); for(int i = 0;i < n;i++) { cin >> a.at(i); } sort(a.begin(), a.end()); for(int j = 0;j < n;j++) { if(a.at(j) != j) { cout << j << endl; break; } } }
結果
問題
点数
言語
結果
実行時間
メモリ
F - TLE
0
C++
WJ
0 ms
0 KiB
コンパイルエラー
Main.cpp: In function 'int main()': Main.cpp:14:5: error: 'sort' was not declared in this scope; did you mean 'short'? 14 | sort(a.begin(), a.end()); | ^~~~ | short