結果

問題 No.8042 本棚
ユーザー 👑 p-adicp-adic
提出日時 2022-08-14 16:07:20
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 140 bytes
コンパイル時間 2,293 ms
コンパイル使用メモリ 202,820 KB
最終ジャッジ日時 2025-01-30 22:30:50
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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";}
      |         ^~~~

ソースコード

diff #

#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";}
0