結果
| 問題 | No.154 市バス |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2015-11-15 23:52:46 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 116 bytes |
| コンパイル時間 | 89 ms |
| コンパイル使用メモリ | 19,712 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-13 07:49:56 |
| 合計ジャッジ時間 | 704 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | AC * 5 WA * 3 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | t;main(s){for(;~scanf("%d\n",&s);puts(t?"impossible":"possible"))for(t=0;s=getchar()-10;t>0&&t++)t+=1-(s&1)-(s<62);}
| ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘t’ [-Wimplicit-int]
main.c:1:3: warning: return type defaults to ‘int’ [-Wimplicit-int]
1 | t;main(s){for(;~scanf("%d\n",&s);puts(t?"impossible":"possible"))for(t=0;s=getchar()-10;t>0&&t++)t+=1-(s&1)-(s<62);}
| ^~~~
main.c: In function ‘main’:
main.c:1:3: warning: type of ‘s’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:17: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
1 | t;main(s){for(;~scanf("%d\n",&s);puts(t?"impossible":"possible"))for(t=0;s=getchar()-10;t>0&&t++)t+=1-(s&1)-(s<62);}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | t;main(s){for(;~scanf("%d\n",&s);puts(t?"impossible":"possible"))for(t=0;s=getchar()-10;t>0&&t++)t+=1-(s&1)-(s<62);}
main.c:1:17: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | t;main(s){for(;~scanf("%d\n",&s);puts(t?"impossible":"possible"))for(t=0;s=getchar()-10;t>0&&t++)t+=1-(s&1)-(s<62);}
| ^~~~~
main.c:1:17: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
main.c:1:34: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
1 | t;main(s){for(;~scanf("%d\n",&s);puts(t?"impossible":"possible"))for(t=0;s=getchar()-10;t>0&&t++)t+=1-(s&1)-(s<62);}
| ^~~~
main.c:1:34: note: include ‘<stdio.h>’ or provide a declaration of ‘puts’
main.c:1:76: warning: implicit declaration of function ‘getchar’ [-Wimplicit-function-declaration]
1 | t;main(s){for(;~scanf("%d\n",&s);puts(t?"impossible":"possible"))for(t=0;s
ソースコード
t;main(s){for(;~scanf("%d\n",&s);puts(t?"impossible":"possible"))for(t=0;s=getchar()-10;t>0&&t++)t+=1-(s&1)-(s<62);}
testestest