結果
問題 |
No.8042 本棚
|
ユーザー |
👑 |
提出日時 | 2022-08-14 16:01:15 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 140 bytes |
コンパイル時間 | 2,318 ms |
コンパイル使用メモリ | 202,124 KB |
最終ジャッジ日時 | 2025-01-30 22:30:40 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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]);N++)sort(S,S+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]);N++)sort(S,S+N);while(i++<N)std::cout<<S[i]+"\n";}