結果
問題 | No.504 ゲーム大会(ランキング) |
ユーザー | %20 |
提出日時 | 2017-05-26 08:07:24 |
言語 | C (gcc 12.3.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 71 bytes |
コンパイル時間 | 94 ms |
コンパイル使用メモリ | 27,648 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-19 19:57:41 |
合計ジャッジ時間 | 990 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 0 ms
5,248 KB |
testcase_01 | AC | 1 ms
5,376 KB |
testcase_02 | AC | 1 ms
5,376 KB |
testcase_03 | AC | 1 ms
5,376 KB |
testcase_04 | AC | 1 ms
5,376 KB |
testcase_05 | AC | 1 ms
5,376 KB |
testcase_06 | AC | 1 ms
5,376 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | x,a;main(i){for(gets(&a);~scanf("%d",&a);printf("%d\n",i+=a>x))x=x?:a;} | ^ main.c:1:1: warning: type defaults to 'int' in declaration of 'x' [-Wimplicit-int] main.c:1:3: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] 1 | x,a;main(i){for(gets(&a);~scanf("%d",&a);printf("%d\n",i+=a>x))x=x?:a;} | ^ main.c:1:5: warning: return type defaults to 'int' [-Wimplicit-int] 1 | x,a;main(i){for(gets(&a);~scanf("%d",&a);printf("%d\n",i+=a>x))x=x?:a;} | ^~~~ main.c: In function 'main': main.c:1:5: warning: type of 'i' defaults to 'int' [-Wimplicit-int] main.c:1:17: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration] 1 | x,a;main(i){for(gets(&a);~scanf("%d",&a);printf("%d\n",i+=a>x))x=x?:a;} | ^~~~ main.c:1:27: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | x,a;main(i){for(gets(&a);~scanf("%d",&a);printf("%d\n",i+=a>x))x=x?:a;} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | x,a;main(i){for(gets(&a);~scanf("%d",&a);printf("%d\n",i+=a>x))x=x?:a;} main.c:1:27: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | x,a;main(i){for(gets(&a);~scanf("%d",&a);printf("%d\n",i+=a>x))x=x?:a;} | ^~~~~ main.c:1:27: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:42: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 1 | x,a;main(i){for(gets(&a);~scanf("%d",&a);printf("%d\n",i+=a>x))x=x?:a;} | ^~~~~~ main.c:1:42: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:42: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-de
ソースコード
x,a;main(i){for(gets(&a);~scanf("%d",&a);printf("%d\n",i+=a>x))x=x?:a;}