結果
| 問題 | No.8042 本棚 |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2020-06-14 02:34:19 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 89 bytes |
| 記録 | |
| コンパイル時間 | 83 ms |
| コンパイル使用メモリ | 29,000 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-08 16:22:01 |
| 合計ジャッジ時間 | 689 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | strcmp();i,s[99][9];main(x){for(;gets(s[i])?!qsort(s,++i,36,strcmp):x<i&&puts(s[x++]););}
| ^~~~~~
main.c:1:10: warning: data definition has no type or storage class
1 | strcmp();i,s[99][9];main(x){for(;gets(s[i])?!qsort(s,++i,36,strcmp):x<i&&puts(s[x++]););}
| ^
main.c: In function ‘main’:
main.c:1:80: warning: passing argument 1 of ‘puts’ from incompatible pointer type [-Wincompatible-pointer-types]
1 | strcmp();i,s[99][9];main(x){for(;gets(s[i])?!qsort(s,++i,36,strcmp):x<i&&puts(s[x++]););}
| ~^~~~~
| |
| int *
main.c:1:80: note: expected ‘const char *’ but argument is of type ‘int *’
/usr/bin/ld: /tmp/ccmfFuEk.o: in function `main':
main.c:(.text.startup+0x25): 警告: the `gets' function is dangerous and should not be used.
ソースコード
strcmp();i,s[99][9];main(x){for(;gets(s[i])?!qsort(s,++i,36,strcmp):x<i&&puts(s[x++]););}
testestest