結果

問題 No.601 Midpoint Erase
ユーザー 👑 testestest
提出日時 2017-12-01 01:17:36
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 95 bytes
コンパイル時間 1,462 ms
コンパイル使用メモリ 27,520 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-27 15:40:59
合計ジャッジ時間 2,256 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 6 WA * 17
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | s,x,y,a[4];main(i){for(;~scanf("%d",&y);x=y)s+=i--&i?a[x%2*2+y%2]++:0;puts(s%2?"Alice":"Bob");}
      | ^
main.c:1:1: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
main.c:1:3: warning: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
    1 | s,x,y,a[4];main(i){for(;~scanf("%d",&y);x=y)s+=i--&i?a[x%2*2+y%2]++:0;puts(s%2?"Alice":"Bob");}
      |   ^
main.c:1:5: warning: type defaults to 'int' in declaration of 'y' [-Wimplicit-int]
    1 | s,x,y,a[4];main(i){for(;~scanf("%d",&y);x=y)s+=i--&i?a[x%2*2+y%2]++:0;puts(s%2?"Alice":"Bob");}
      |     ^
main.c:1:7: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
    1 | s,x,y,a[4];main(i){for(;~scanf("%d",&y);x=y)s+=i--&i?a[x%2*2+y%2]++:0;puts(s%2?"Alice":"Bob");}
      |       ^
main.c:1:12: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | s,x,y,a[4];main(i){for(;~scanf("%d",&y);x=y)s+=i--&i?a[x%2*2+y%2]++:0;puts(s%2?"Alice":"Bob");}
      |            ^~~~
main.c: In function 'main':
main.c:1:12: warning: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:1:26: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | s,x,y,a[4];main(i){for(;~scanf("%d",&y);x=y)s+=i--&i?a[x%2*2+y%2]++:0;puts(s%2?"Alice":"Bob");}
      |                          ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | s,x,y,a[4];main(i){for(;~scanf("%d",&y);x=y)s+=i--&i?a[x%2*2+y%2]++:0;puts(s%2?"Alice":"Bob");}
main.c:1:26: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | s,x,y,a[4];main(i){for(;~scanf("%d",&y);x=y)s+=i--&i?a[x%2*2+y%2]++:0;puts(s%2?"Alice":"Bob");}
      |                          ^~~~~
main.c:1:26: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:71: warning: implicit declaration of function 'put

ソースコード

diff #

s,x,y,a[4];main(i){for(;~scanf("%d",&y);x=y)s+=i--&i?a[x%2*2+y%2]++:0;puts(s%2?"Alice":"Bob");}
0