ログイン
新規登録
AtsuoCoder Waseda Tour Finals 2025
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 01e4faa2-6673-40ac-ac88-8567e9ae432a
コード
#include <stdio.h> #include <stdbool.h> typedef long long ll; int main(void){ ll n; scanf("%lld",&n); ll a[n]; for(ll i=0;i<=n-1;i++) scanf("%lld",&a[i]); for(ll ans=0;ans<=n;ans++){ bool ok=true; for(ll i=0;i<=n-1;i++){ if(a[i]==ans) ok=false; } if(ok){ printf("%lld",ans); return 0; } } return 0; }
結果
問題
点数
言語
結果
実行時間
メモリ
F - TLE
0
C++
TLE
2100 ms
2548 KiB
コンパイルエラー
Main.cpp: In function 'int main()': Main.cpp:6:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 6 | scanf("%lld",&n); | ~~~~~^~~~~~~~~~~ Main.cpp:8:33: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 8 | for(ll i=0;i<=n-1;i++) scanf("%lld",&a[i]); | ~~~~~^~~~~~~~~~~~~~