結果
| 問題 |
No.8042 本棚
|
| コンテスト | |
| ユーザー |
Shiro_S
|
| 提出日時 | 2021-07-12 15:35:47 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 99 bytes |
| コンパイル時間 | 288 ms |
| コンパイル使用メモリ | 28,288 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-02 03:27:47 |
| 合計ジャッジ時間 | 979 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 24 |
コンパイルメッセージ
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++);}
|
ソースコード
#import"string.h"
S[55][9],j;main(i){for(;gets(S+j++);qsort(S,j,36,strcmp));for(;i<j;)puts(S+i++);}
Shiro_S