結果
問題 |
No.154 市バス
|
ユーザー |
👑 ![]() |
提出日時 | 2016-03-19 10:49:31 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 793 ms / 2,000 ms |
コード長 | 130 bytes |
コンパイル時間 | 178 ms |
コンパイル使用メモリ | 19,712 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-13 08:13:20 |
合計ジャッジ時間 | 6,148 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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(;read(0,&z,1)?z==10?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):z-82?x=z,z-87?s--,~t&&t++:~s&&s++:t--,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(;read(0,&z,1)?z==10?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):z-82?x=z,z-87?s--,~t&&t++:~s&&s++:t--,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(;read(0,&z,1)?z==10?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):z-82?x=z,z-87?s--,~t&&t++:~s&&s++:t--,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(;read(0,&z,1)?z==10?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):z-82?x=z,z-87?s--,~t&&t++:~s&&s++:t--,1:0;);} | ^ main.c:1:9: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | x,z,t,s;main(i){for(;read(0,&z,1)?z==10?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):z-82?x=z,z-87?s--,~t&&t++:~s&&s++:t--,1:0;);} | ^~~~ 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,t,s;main(i){for(;read(0,&z,1)?z==10?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):z-82?x=z,z-87?s--,~t&&t++:~s&&s++:t--,1:0;);} | ^~~~ main.c:1:51: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration] 1 | x,z,t,s;main(i){for(;read(0,&z,1)?z==10?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):z-82?x=z,z-87?s--,~t&&t++:~s&&s++:t--,1:0;);} | ^~~~ main.c:1:1: note: include ‘<stdio.h>’ or pr
ソースコード
x,z,t,s;main(i){for(;read(0,&z,1)?z==10?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):z-82?x=z,z-87?s--,~t&&t++:~s&&s++:t--,1:0;);}