結果
| 問題 | No.201 yukicoderじゃんけん |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2015-08-09 20:35:59 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 144 bytes |
| 記録 | |
| コンパイル時間 | 91 ms |
| コンパイル使用メモリ | 19,456 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-18 06:17:04 |
| 合計ジャッジ時間 | 722 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 WA * 3 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | x;char a[9],c[9],b[9999],d[9999];main(){scanf("%s%s%*s%s%s%*s",a,b,c,d);x=strlen(b)-strlen(d);x=x?x:strcmp(b,d);x=!printf("%s",x?x>0?a:c:"-1");}
| ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘x’ [-Wimplicit-int]
main.c:1:34: warning: return type defaults to ‘int’ [-Wimplicit-int]
1 | x;char a[9],c[9],b[9999],d[9999];main(){scanf("%s%s%*s%s%s%*s",a,b,c,d);x=strlen(b)-strlen(d);x=x?x:strcmp(b,d);x=!printf("%s",x?x>0?a:c:"-1");}
| ^~~~
main.c: In function ‘main’:
main.c:1:41: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
1 | x;char a[9],c[9],b[9999],d[9999];main(){scanf("%s%s%*s%s%s%*s",a,b,c,d);x=strlen(b)-strlen(d);x=x?x:strcmp(b,d);x=!printf("%s",x?x>0?a:c:"-1");}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | x;char a[9],c[9],b[9999],d[9999];main(){scanf("%s%s%*s%s%s%*s",a,b,c,d);x=strlen(b)-strlen(d);x=x?x:strcmp(b,d);x=!printf("%s",x?x>0?a:c:"-1");}
main.c:1:41: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | x;char a[9],c[9],b[9999],d[9999];main(){scanf("%s%s%*s%s%s%*s",a,b,c,d);x=strlen(b)-strlen(d);x=x?x:strcmp(b,d);x=!printf("%s",x?x>0?a:c:"-1");}
| ^~~~~
main.c:1:41: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
main.c:1:75: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
1 | x;char a[9],c[9],b[9999],d[9999];main(){scanf("%s%s%*s%s%s%*s",a,b,c,d);x=strlen(b)-strlen(d);x=x?x:strcmp(b,d);x=!printf("%s",x?x>0?a:c:"-1");}
| ^~~~~~
main.c:1:1: note: include ‘<string.h>’ or prov
ソースコード
x;char a[9],c[9],b[9999],d[9999];main(){scanf("%s%s%*s%s%s%*s",a,b,c,d);x=strlen(b)-strlen(d);x=x?x:strcmp(b,d);x=!printf("%s",x?x>0?a:c:"-1");}
testestest