結果
問題 |
No.154 市バス
|
ユーザー |
👑 ![]() |
提出日時 | 2016-03-12 23:47:21 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 11 ms / 2,000 ms |
コード長 | 133 bytes |
コンパイル時間 | 82 ms |
コンパイル使用メモリ | 19,840 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-13 08:10:35 |
合計ジャッジ時間 | 696 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 8 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | x,z,t,s;main(i){for(;(z=~getchar())?z+11?z+83?x=z,z+88?s--,~t&&t++:~s&&s++:t--:(s=t=--i&&!puts("impossible"+2*!(t|s<0|x+72))),1:0;);} | ^ 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,t,s;main(i){for(;(z=~getchar())?z+11?z+83?x=z,z+88?s--,~t&&t++:~s&&s++:t--:(s=t=--i&&!puts("impossible"+2*!(t|s<0|x+72))),1:0;);} | ^ main.c:1:5: warning: type defaults to ‘int’ in declaration of ‘t’ [-Wimplicit-int] 1 | x,z,t,s;main(i){for(;(z=~getchar())?z+11?z+83?x=z,z+88?s--,~t&&t++:~s&&s++:t--:(s=t=--i&&!puts("impossible"+2*!(t|s<0|x+72))),1:0;);} | ^ main.c:1:7: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int] 1 | x,z,t,s;main(i){for(;(z=~getchar())?z+11?z+83?x=z,z+88?s--,~t&&t++:~s&&s++:t--:(s=t=--i&&!puts("impossible"+2*!(t|s<0|x+72))),1:0;);} | ^ main.c:1:9: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | x,z,t,s;main(i){for(;(z=~getchar())?z+11?z+83?x=z,z+88?s--,~t&&t++:~s&&s++:t--:(s=t=--i&&!puts("impossible"+2*!(t|s<0|x+72))),1:0;);} | ^~~~ main.c: In function ‘main’: main.c:1:9: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int] main.c:1:26: warning: implicit declaration of function ‘getchar’ [-Wimplicit-function-declaration] 1 | x,z,t,s;main(i){for(;(z=~getchar())?z+11?z+83?x=z,z+88?s--,~t&&t++:~s&&s++:t--:(s=t=--i&&!puts("impossible"+2*!(t|s<0|x+72))),1:0;);} | ^~~~~~~ main.c:1:1: note: ‘getchar’ is defined in header ‘<stdio.h>’; did you forget to ‘#include <stdio.h>’? +++ |+#include <stdio.h> 1 | x,z,t,s;main(i){for(;(z=~getchar())?z+11?z+83?x=z,z+88?s--,~t&&t++:~s&&s++:t--:(s=t=--i&&!puts("impossible"+2*!(t|s<0|x+72))),1:0;);} main.c:1:91: warning: implicit declara
ソースコード
x,z,t,s;main(i){for(;(z=~getchar())?z+11?z+83?x=z,z+88?s--,~t&&t++:~s&&s++:t--:(s=t=--i&&!puts("impossible"+2*!(t|s<0|x+72))),1:0;);}