結果
問題 |
No.201 yukicoderじゃんけん
|
ユーザー |
👑 ![]() |
提出日時 | 2015-08-09 20:35:27 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 142 bytes |
コンパイル時間 | 86 ms |
コンパイル使用メモリ | 19,456 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-18 06:16:59 |
合計ジャッジ時間 | 817 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 WA * 16 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | x;char a[],c[],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:32: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | x;char a[],c[],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:39: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | x;char a[],c[],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[],c[],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:39: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 1 | x;char a[],c[],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:39: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:73: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration] 1 | x;char a[],c[],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 provide a declaration of
ソースコード
x;char a[],c[],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");}