結果
問題 |
No.8042 本棚
|
ユーザー |
👑 |
提出日時 | 2021-11-02 15:39:31 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 133 bytes |
コンパイル時間 | 1,791 ms |
コンパイル使用メモリ | 173,640 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-11 19:57:37 |
合計ジャッジ時間 | 3,338 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 21 RE * 3 |
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 1 | #import"bits/stdc++.h" | ^~~~~~ main.cpp:2:7: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 2 | int i;main(){std::string A[51];for(;getline(std::cin,A[i++]););sort(A,A+i);for(;i-1;std::cout<<A[i--]<<"\n");} | ^~~~
ソースコード
#import"bits/stdc++.h" int i;main(){std::string A[51];for(;getline(std::cin,A[i++]););sort(A,A+i);for(;i-1;std::cout<<A[i--]<<"\n");}