結果

問題 No.156 キャンディー・ボックス
ユーザー testestesttestestest
提出日時 2015-12-16 23:12:43
言語 C90
(gcc 11.4.0)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 134 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 19,968 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2023-12-26 09:46:14
合計ジャッジ時間 2,415 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
6,676 KB
testcase_01 AC 1 ms
6,676 KB
testcase_02 AC 0 ms
6,676 KB
testcase_03 AC 0 ms
6,676 KB
testcase_04 AC 1 ms
6,676 KB
testcase_05 AC 1 ms
6,676 KB
testcase_06 AC 2 ms
6,676 KB
testcase_07 RE -
testcase_08 AC 2 ms
6,676 KB
testcase_09 AC 1 ms
6,676 KB
testcase_10 AC 2 ms
6,676 KB
testcase_11 AC 1 ms
6,676 KB
testcase_12 RE -
testcase_13 AC 1 ms
6,676 KB
testcase_14 AC 1 ms
6,676 KB
testcase_15 RE -
testcase_16 AC 1 ms
6,676 KB
testcase_17 AC 1 ms
6,676 KB
testcase_18 RE -
testcase_19 RE -
testcase_20 AC 1 ms
6,676 KB
testcase_21 RE -
testcase_22 RE -
testcase_23 AC 1 ms
6,676 KB
testcase_24 AC 1 ms
6,676 KB
testcase_25 AC 0 ms
6,676 KB
testcase_26 AC 0 ms
6,676 KB
testcase_27 AC 0 ms
6,676 KB
testcase_28 AC 1 ms
6,676 KB
testcase_29 AC 1 ms
6,676 KB
testcase_30 AC 4 ms
6,676 KB
testcase_31 RE -
testcase_32 RE -
testcase_33 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | i,j,w[9];c(int*a,int*b){return*a-*b;}main(){for(;~scanf("%d",w+i++););qsort(w+2,*w,4,c);for(;w[1]--;--w[j+2]||j++);j=!printf("%d",j);}
      | ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int]
main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘j’ [-Wimplicit-int]
    1 | i,j,w[9];c(int*a,int*b){return*a-*b;}main(){for(;~scanf("%d",w+i++););qsort(w+2,*w,4,c);for(;w[1]--;--w[j+2]||j++);j=!printf("%d",j);}
      |   ^
main.c:1:5: warning: type defaults to ‘int’ in declaration of ‘w’ [-Wimplicit-int]
    1 | i,j,w[9];c(int*a,int*b){return*a-*b;}main(){for(;~scanf("%d",w+i++););qsort(w+2,*w,4,c);for(;w[1]--;--w[j+2]||j++);j=!printf("%d",j);}
      |     ^
main.c:1:10: warning: return type defaults to ‘int’ [-Wimplicit-int]
    1 | i,j,w[9];c(int*a,int*b){return*a-*b;}main(){for(;~scanf("%d",w+i++););qsort(w+2,*w,4,c);for(;w[1]--;--w[j+2]||j++);j=!printf("%d",j);}
      |          ^
main.c:1:38: warning: return type defaults to ‘int’ [-Wimplicit-int]
    1 | i,j,w[9];c(int*a,int*b){return*a-*b;}main(){for(;~scanf("%d",w+i++););qsort(w+2,*w,4,c);for(;w[1]--;--w[j+2]||j++);j=!printf("%d",j);}
      |                                      ^~~~
main.c: In function ‘main’:
main.c:1:51: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
    1 | i,j,w[9];c(int*a,int*b){return*a-*b;}main(){for(;~scanf("%d",w+i++););qsort(w+2,*w,4,c);for(;w[1]--;--w[j+2]||j++);j=!printf("%d",j);}
      |                                                   ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
  +++ |+#include <stdio.h>
    1 | i,j,w[9];c(int*a,int*b){return*a-*b;}main(){for(;~scanf("%d",w+i++););qsort(w+2,*w,4,c);for(;w[1]--;--w[j+2]||j++);j=!printf("%d",j);}
main.c:1:51: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-dec

ソースコード

diff #

i,j,w[9];c(int*a,int*b){return*a-*b;}main(){for(;~scanf("%d",w+i++););qsort(w+2,*w,4,c);for(;w[1]--;--w[j+2]||j++);j=!printf("%d",j);}
0