結果

問題 No.8042 本棚
ユーザー yoshnary
提出日時 2019-04-01 21:43:13
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 172 bytes
コンパイル時間 1,796 ms
コンパイル使用メモリ 175,992 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-28 01:48:51
合計ジャッジ時間 2,658 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 24
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:2:21: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | using namespace std;main(){int n;cin>>n;string s[53];getline(cin,s[0]);for(int i=0;i<n;i++)getline(cin,s[i]);sort(s,s+n);for(auto t:s)cout<<t+"\n";}
      |                     ^~~~

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;main(){int n;cin>>n;string s[53];getline(cin,s[0]);for(int i=0;i<n;i++)getline(cin,s[i]);sort(s,s+n);for(auto t:s)cout<<t+"\n";}
0