結果
問題 |
No.216 FAC
|
ユーザー |
👑 ![]() |
提出日時 | 2016-02-16 13:26:35 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 133 bytes |
コンパイル時間 | 111 ms |
コンパイル使用メモリ | 20,224 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-22 07:16:42 |
合計ジャッジ時間 | 1,041 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 14 WA * 10 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | a[202],b[101],i,k=101;main(n){for(;~scanf("%d",a+i);i++);for(n=i/2;--i>n;b[a[i]]+=a[i-n]);for(;--k&b[k]<=*b;);k=!puts(k?"NO":"YES");} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int] main.c:1:8: warning: type defaults to ‘int’ in declaration of ‘b’ [-Wimplicit-int] 1 | a[202],b[101],i,k=101;main(n){for(;~scanf("%d",a+i);i++);for(n=i/2;--i>n;b[a[i]]+=a[i-n]);for(;--k&b[k]<=*b;);k=!puts(k?"NO":"YES");} | ^ main.c:1:15: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] 1 | a[202],b[101],i,k=101;main(n){for(;~scanf("%d",a+i);i++);for(n=i/2;--i>n;b[a[i]]+=a[i-n]);for(;--k&b[k]<=*b;);k=!puts(k?"NO":"YES");} | ^ main.c:1:17: warning: type defaults to ‘int’ in declaration of ‘k’ [-Wimplicit-int] 1 | a[202],b[101],i,k=101;main(n){for(;~scanf("%d",a+i);i++);for(n=i/2;--i>n;b[a[i]]+=a[i-n]);for(;--k&b[k]<=*b;);k=!puts(k?"NO":"YES");} | ^ main.c:1:23: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | a[202],b[101],i,k=101;main(n){for(;~scanf("%d",a+i);i++);for(n=i/2;--i>n;b[a[i]]+=a[i-n]);for(;--k&b[k]<=*b;);k=!puts(k?"NO":"YES");} | ^~~~ main.c: In function ‘main’: main.c:1:23: warning: type of ‘n’ defaults to ‘int’ [-Wimplicit-int] main.c:1:37: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | a[202],b[101],i,k=101;main(n){for(;~scanf("%d",a+i);i++);for(n=i/2;--i>n;b[a[i]]+=a[i-n]);for(;--k&b[k]<=*b;);k=!puts(k?"NO":"YES");} | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | a[202],b[101],i,k=101;main(n){for(;~scanf("%d",a+i);i++);for(n=i/2;--i>n;b[a[i]]+=a[i-n]);for(;--k&b[k]<=*b;);k=!puts(k?"NO":"YES");} main.c:1:37: warning
ソースコード
a[202],b[101],i,k=101;main(n){for(;~scanf("%d",a+i);i++);for(n=i/2;--i>n;b[a[i]]+=a[i-n]);for(;--k&b[k]<=*b;);k=!puts(k?"NO":"YES");}