結果
| 問題 | No.154 市バス |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2015-11-18 20:43:20 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 138 bytes |
| コンパイル時間 | 99 ms |
| コンパイル使用メモリ | 19,968 KB |
| 実行使用メモリ | 6,816 KB |
| 最終ジャッジ日時 | 2024-10-13 07:50:09 |
| 合計ジャッジ時間 | 729 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 7 WA * 1 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | x,t,s;main(z){for(;t=~scanf("%d\n",&z);puts("impossible"+2*!(t-1|!s|x-61)))for(s=t=1;z=getchar()-10;)z-72?x=z,z-77?s--,t&&t++:s&&s++: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 ‘t’ [-Wimplicit-int]
1 | x,t,s;main(z){for(;t=~scanf("%d\n",&z);puts("impossible"+2*!(t-1|!s|x-61)))for(s=t=1;z=getchar()-10;)z-72?x=z,z-77?s--,t&&t++:s&&s++:t--;}
| ^
main.c:1:5: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int]
1 | x,t,s;main(z){for(;t=~scanf("%d\n",&z);puts("impossible"+2*!(t-1|!s|x-61)))for(s=t=1;z=getchar()-10;)z-72?x=z,z-77?s--,t&&t++:s&&s++:t--;}
| ^
main.c:1:7: warning: return type defaults to ‘int’ [-Wimplicit-int]
1 | x,t,s;main(z){for(;t=~scanf("%d\n",&z);puts("impossible"+2*!(t-1|!s|x-61)))for(s=t=1;z=getchar()-10;)z-72?x=z,z-77?s--,t&&t++:s&&s++:t--;}
| ^~~~
main.c: In function ‘main’:
main.c:1:7: warning: type of ‘z’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:23: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
1 | x,t,s;main(z){for(;t=~scanf("%d\n",&z);puts("impossible"+2*!(t-1|!s|x-61)))for(s=t=1;z=getchar()-10;)z-72?x=z,z-77?s--,t&&t++:s&&s++:t--;}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | x,t,s;main(z){for(;t=~scanf("%d\n",&z);puts("impossible"+2*!(t-1|!s|x-61)))for(s=t=1;z=getchar()-10;)z-72?x=z,z-77?s--,t&&t++:s&&s++:t--;}
main.c:1:23: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | x,t,s;main(z){for(;t=~scanf("%d\n",&z);puts("impossible"+2*!(t-1|!s|x-61)))for(s=t=1;z=getchar()-10;)z-72?x=z,z-77?s--,t&&t++:s&&s++:t--;}
|
ソースコード
x,t,s;main(z){for(;t=~scanf("%d\n",&z);puts("impossible"+2*!(t-1|!s|x-61)))for(s=t=1;z=getchar()-10;)z-72?x=z,z-77?s--,t&&t++:s&&s++:t--;}
testestest