結果
問題 | No.476 正しくない平均 |
ユーザー |
|
提出日時 | 2017-01-28 00:05:05 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 97 bytes |
コンパイル時間 | 434 ms |
コンパイル使用メモリ | 19,584 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 17:58:17 |
合計ジャッジ時間 | 1,474 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 WA * 9 |
コンパイルメッセージ
main.c:1:13: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | long long l;main(n,k){scanf("%d%xd",&n,&l);l*=n;for(;n--;l-=k)scanf("%d",&k);puts(l?"NO":"YES");} | ^~~~ main.c: In function ‘main’: main.c:1:13: warning: type of ‘n’ defaults to ‘int’ [-Wimplicit-int] main.c:1:13: warning: type of ‘k’ defaults to ‘int’ [-Wimplicit-int] main.c:1:23: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | long long l;main(n,k){scanf("%d%xd",&n,&l);l*=n;for(;n--;l-=k)scanf("%d",&k);puts(l?"NO":"YES");} | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | long long l;main(n,k){scanf("%d%xd",&n,&l);l*=n;for(;n--;l-=k)scanf("%d",&k);puts(l?"NO":"YES");} main.c:1:23: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 1 | long long l;main(n,k){scanf("%d%xd",&n,&l);l*=n;for(;n--;l-=k)scanf("%d",&k);puts(l?"NO":"YES");} | ^~~~~ main.c:1:23: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:33: warning: format ‘%x’ expects argument of type ‘unsigned int *’, but argument 3 has type ‘long long int *’ [-Wformat=] 1 | long long l;main(n,k){scanf("%d%xd",&n,&l);l*=n;for(;n--;l-=k)scanf("%d",&k);puts(l?"NO":"YES");} | ~^ ~~ | | | | | long long int * | unsigned int * | %llx main.c:1:78: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration] 1 | long long l;main(n,k){scanf("%d%xd",&n,&l);l*=n;for(;n--;l-=k)scanf("%d",&k);puts(l?"NO":"YES");} | ^~~~
ソースコード
long long l;main(n,k){scanf("%d%xd",&n,&l);l*=n;for(;n--;l-=k)scanf("%d",&k);puts(l?"NO":"YES");}