結果

問題 No.201 yukicoderじゃんけん
コンテスト
ユーザー testestest
提出日時 2016-06-06 02:34:23
言語 C90(gcc12)
(gcc 12.4.0)
コンパイル:
gcc-12 -O2 -std=c90 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 124 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 142 ms
コンパイル使用メモリ 28,616 KB
最終ジャッジ日時 2026-02-23 21:32:46
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | x,a[9],b[3000],c[9],d[3000];main(){scanf("%s%s%*s%s%s",a,b,c,d);x=strlen(b)-strlen(d)?:strcmp(b,d);x=!puts(x?x>0?a:c:"-1");}
      | ^
main.c: In function ‘main’:
main.c:1:36: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
    1 | x,a[9],b[3000],c[9],d[3000];main(){scanf("%s%s%*s%s%s",a,b,c,d);x=strlen(b)-strlen(d)?:strcmp(b,d);x=!puts(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,a[9],b[3000],c[9],d[3000];main(){scanf("%s%s%*s%s%s",a,b,c,d);x=strlen(b)-strlen(d)?:strcmp(b,d);x=!puts(x?x>0?a:c:"-1");}
main.c:1:44: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int *’ [-Wformat=]
    1 | x,a[9],b[3000],c[9],d[3000];main(){scanf("%s%s%*s%s%s",a,b,c,d);x=strlen(b)-strlen(d)?:strcmp(b,d);x=!puts(x?x>0?a:c:"-1");}
      |                                           ~^           ~
      |                                            |           |
      |                                            char *      int *
      |                                           %ls
main.c:1:46: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int *’ [-Wformat=]
    1 | x,a[9],b[3000],c[9],d[3000];main(){scanf("%s%s%*s%s%s",a,b,c,d);x=strlen(b)-strlen(d)?:strcmp(b,d);x=!puts(x?x>0?a:c:"-1");}
      |                                             ~^           ~
      |                                              |           |
      |                                              char *      int *
      |                                             %ls
main.c:1:51: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int *’ [-Wformat=]
    1 | x,a[9],b[3000],c[9],d[3000];main(){scanf("%s%s%*s%

ソースコード

diff #
raw source code

x,a[9],b[3000],c[9],d[3000];main(){scanf("%s%s%*s%s%s",a,b,c,d);x=strlen(b)-strlen(d)?:strcmp(b,d);x=!puts(x?x>0?a:c:"-1");}
0