結果
| 問題 | No.8042 本棚 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-08-14 16:07:20 |
| 言語 | C++17(gcc12) (gcc 12.4.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 140 bytes |
| 記録 | |
| コンパイル時間 | 1,482 ms |
| コンパイル使用メモリ | 208,536 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-27 01:29:39 |
| 合計ジャッジ時間 | 2,642 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 22 RE * 2 |
コンパイルメッセージ
main.cpp:2:9: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
2 | int i,N;main(){std::string S[51];for(;std::getline(std::cin,S[N]);sort(S,S+N))N++;while(i++<N)std::cout<<S[i]+"\n";}
| ^~~~
ソースコード
#include<bits/stdc++.h>
int i,N;main(){std::string S[51];for(;std::getline(std::cin,S[N]);sort(S,S+N))N++;while(i++<N)std::cout<<S[i]+"\n";}