結果
| 問題 | 
                            No.8042 本棚
                             | 
                    
| コンテスト | |
| ユーザー | 
                            👑  | 
                    
| 提出日時 | 2022-08-14 16:10:16 | 
| 言語 | C++17(gcc12)  (gcc 12.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 3 ms / 2,000 ms | 
| コード長 | 140 bytes | 
| コンパイル時間 | 2,281 ms | 
| コンパイル使用メモリ | 202,104 KB | 
| 最終ジャッジ日時 | 2025-01-30 22:31:26 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 24 | 
コンパイルメッセージ
main.cpp:2:9: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
    2 | int i,N;main(){std::string S[99];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[99];for(;std::getline(std::cin,S[N]);sort(S,S+N))N++;while(++i<N)std::cout<<S[i]+"\n";}