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