結果

問題 No.8042 本棚
ユーザー Shiro_SShiro_S
提出日時 2021-07-12 15:35:47
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 99 bytes
コンパイル時間 288 ms
コンパイル使用メモリ 28,288 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-02 03:27:47
合計ジャッジ時間 979 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import"string.h"
      |  ^~~~~~
main.c:2:1: warning: data definition has no type or storage class
    2 | S[55][9],j;main(i){for(;gets(S+j++);qsort(S,j,36,strcmp));for(;i<j;)puts(S+i++);}
      | ^
main.c:2:1: warning: type defaults to 'int' in declaration of 'S' [-Wimplicit-int]
main.c:2:10: warning: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
    2 | S[55][9],j;main(i){for(;gets(S+j++);qsort(S,j,36,strcmp));for(;i<j;)puts(S+i++);}
      |          ^
main.c:2:12: warning: return type defaults to 'int' [-Wimplicit-int]
    2 | S[55][9],j;main(i){for(;gets(S+j++);qsort(S,j,36,strcmp));for(;i<j;)puts(S+i++);}
      |            ^~~~
main.c: In function 'main':
main.c:2:12: warning: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:2:25: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
    2 | S[55][9],j;main(i){for(;gets(S+j++);qsort(S,j,36,strcmp));for(;i<j;)puts(S+i++);}
      |                         ^~~~
main.c:2:37: warning: implicit declaration of function 'qsort' [-Wimplicit-function-declaration]
    2 | S[55][9],j;main(i){for(;gets(S+j++);qsort(S,j,36,strcmp));for(;i<j;)puts(S+i++);}
      |                                     ^~~~~
main.c:2:69: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    2 | S[55][9],j;main(i){for(;gets(S+j++);qsort(S,j,36,strcmp));for(;i<j;)puts(S+i++);}
      |                                                                     ^~~~
main.c:2:1: note: include '<stdio.h>' or provide a declaration of 'puts'
    1 | #import"string.h"
  +++ |+#include <stdio.h>
    2 | S[55][9],j;main(i){for(;gets(S+j++);qsort(S,j,36,strcmp));for(;i<j;)puts(S+i++);}
main.c:2:75: warning: passing argument 1 of 'puts' from incompatible pointer type [-Wincompatible-pointer-types]
    2 | S[55][9],j;main(i){for(;gets(S+j++);qsort(S,j,36,strcmp));for(;i<j;)puts(S+i++);}
      |         

ソースコード

diff #

#import"string.h"
S[55][9],j;main(i){for(;gets(S+j++);qsort(S,j,36,strcmp));for(;i<j;)puts(S+i++);}
0