結果
| 問題 | No.201 yukicoderじゃんけん |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2015-08-09 20:35:27 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 142 bytes |
| 記録 | |
| コンパイル時間 | 177 ms |
| コンパイル使用メモリ | 28,876 KB |
| 最終ジャッジ日時 | 2026-02-23 19:12:17 |
|
ジャッジサーバーID (参考情報) |
judge3 / 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: In function ‘main’:
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: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:73: warning: incompatible implicit declaration of built-in function ‘strlen’ [-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:1: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
+++ |+#include <string.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:114: warning: incompatible implicit declaration of built-in function ‘printf’ [-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:114: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
main.c: At top level:
main.c:1:8: warning: a
ソースコード
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");}
testestest