結果
| 問題 |
No.8042 本棚
|
| コンテスト | |
| ユーザー |
Shiro_S
|
| 提出日時 | 2021-07-12 15:16:56 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 111 bytes |
| コンパイル時間 | 129 ms |
| コンパイル使用メモリ | 28,160 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-02 03:27:41 |
| 合計ジャッジ時間 | 928 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 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];main(i){for(gets(*S);gets(S+i++););qsort(S,i,36,strcmp);for(i=1;*S[++i];)puts(S+i);}
| ^
main.c:2:1: warning: type defaults to 'int' in declaration of 'S' [-Wimplicit-int]
main.c:2:10: warning: return type defaults to 'int' [-Wimplicit-int]
2 | S[55][9];main(i){for(gets(*S);gets(S+i++););qsort(S,i,36,strcmp);for(i=1;*S[++i];)puts(S+i);}
| ^~~~
main.c: In function 'main':
main.c:2:10: warning: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:2:22: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
2 | S[55][9];main(i){for(gets(*S);gets(S+i++););qsort(S,i,36,strcmp);for(i=1;*S[++i];)puts(S+i);}
| ^~~~
main.c:2:45: warning: implicit declaration of function 'qsort' [-Wimplicit-function-declaration]
2 | S[55][9];main(i){for(gets(*S);gets(S+i++););qsort(S,i,36,strcmp);for(i=1;*S[++i];)puts(S+i);}
| ^~~~~
main.c:2:83: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
2 | S[55][9];main(i){for(gets(*S);gets(S+i++););qsort(S,i,36,strcmp);for(i=1;*S[++i];)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];main(i){for(gets(*S);gets(S+i++););qsort(S,i,36,strcmp);for(i=1;*S[++i];)puts(S+i);}
main.c:2:89: warning: passing argument 1 of 'puts' from incompatible pointer type [-Wincompatible-pointer-types]
2 | S[55][9];main(i){for(gets(*S);gets(S+i++););qsort(S,i,36,strcmp);for(i=1;*S[++i];)puts(S+i);}
| ~^~
|
ソースコード
#import<string.h>
S[55][9];main(i){for(gets(*S);gets(S+i++););qsort(S,i,36,strcmp);for(i=1;*S[++i];)puts(S+i);}
Shiro_S