結果
問題 | No.154 市バス |
ユーザー |
👑 ![]() |
提出日時 | 2017-01-12 23:52:10 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 747 ms / 2,000 ms |
コード長 | 121 bytes |
コンパイル時間 | 129 ms |
コンパイル使用メモリ | 20,096 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-13 08:52:31 |
合計ジャッジ時間 | 5,990 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 8 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | x,z,s,t;main(i){for(;read(0,&z,1);)z&1?x=z,z%3?s--,~t&&t++:~s&&s++:z&8?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):t--;} | ^ 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 ‘z’ [-Wimplicit-int] 1 | x,z,s,t;main(i){for(;read(0,&z,1);)z&1?x=z,z%3?s--,~t&&t++:~s&&s++:z&8?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):t--;} | ^ main.c:1:5: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int] 1 | x,z,s,t;main(i){for(;read(0,&z,1);)z&1?x=z,z%3?s--,~t&&t++:~s&&s++:z&8?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):t--;} | ^ main.c:1:7: warning: type defaults to ‘int’ in declaration of ‘t’ [-Wimplicit-int] 1 | x,z,s,t;main(i){for(;read(0,&z,1);)z&1?x=z,z%3?s--,~t&&t++:~s&&s++:z&8?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):t--;} | ^ main.c:1:9: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | x,z,s,t;main(i){for(;read(0,&z,1);)z&1?x=z,z%3?s--,~t&&t++:~s&&s++:z&8?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):t--;} | ^~~~ main.c: In function ‘main’: main.c:1:9: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int] main.c:1:22: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration] 1 | x,z,s,t;main(i){for(;read(0,&z,1);)z&1?x=z,z%3?s--,~t&&t++:~s&&s++:z&8?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):t--;} | ^~~~ main.c:1:82: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration] 1 | x,z,s,t;main(i){for(;read(0,&z,1);)z&1?x=z,z%3?s--,~t&&t++:~s&&s++:z&8?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):t--;} | ^~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘puts��
ソースコード
x,z,s,t;main(i){for(;read(0,&z,1);)z&1?x=z,z%3?s--,~t&&t++:~s&&s++:z&8?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):t--;}