結果
問題 | No.8042 本棚 |
ユーザー | kotatsugame |
提出日時 | 2019-03-30 16:51:37 |
言語 | C (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 101 bytes |
コンパイル時間 | 271 ms |
コンパイル使用メモリ | 28,032 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-15 19:44:24 |
合計ジャッジ時間 | 1,163 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
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[51][9];i;main(j){for(;gets(s[i++]););for(qsort(s,i,36,strcmp);j<i;)puts(s[j++]);} | ^ main.c:2:1: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int] main.c:2:10: warning: data definition has no type or storage class 2 | s[51][9];i;main(j){for(;gets(s[i++]););for(qsort(s,i,36,strcmp);j<i;)puts(s[j++]);} | ^ main.c:2:10: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] main.c:2:12: warning: return type defaults to 'int' [-Wimplicit-int] 2 | s[51][9];i;main(j){for(;gets(s[i++]););for(qsort(s,i,36,strcmp);j<i;)puts(s[j++]);} | ^~~~ main.c: In function 'main': main.c:2:12: warning: type of 'j' defaults to 'int' [-Wimplicit-int] main.c:2:25: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration] 2 | s[51][9];i;main(j){for(;gets(s[i++]););for(qsort(s,i,36,strcmp);j<i;)puts(s[j++]);} | ^~~~ main.c:2:44: warning: implicit declaration of function 'qsort' [-Wimplicit-function-declaration] 2 | s[51][9];i;main(j){for(;gets(s[i++]););for(qsort(s,i,36,strcmp);j<i;)puts(s[j++]);} | ^~~~~ main.c:2:70: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration] 2 | s[51][9];i;main(j){for(;gets(s[i++]););for(qsort(s,i,36,strcmp);j<i;)puts(s[j++]);} | ^~~~ main.c:2:1: note: include '<stdio.h>' or provide a declaration of 'puts' 1 | #import<string.h> +++ |+#include <stdio.h> 2 | s[51][9];i;main(j){for(;gets(s[i++]););for(qsort(s,i,36,strcmp);j<i;)puts(s[j++]);} main.c:2:76: warning: passing argument 1 of 'puts' from incompatible pointer type [-Wincompatible-pointer-types] 2 | s[51][9];
ソースコード
#import<string.h> s[51][9];i;main(j){for(;gets(s[i++]););for(qsort(s,i,36,strcmp);j<i;)puts(s[j++]);}