結果

問題 No.8042 本棚
ユーザー chocopuu
提出日時 2019-04-02 03:11:18
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 139 bytes
コンパイル時間 1,648 ms
コンパイル使用メモリ 172,568 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-27 11:45:07
合計ジャッジ時間 2,375 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 24
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<bits/stdc++.h>
      |  ^~~~~~
main.cpp:2:30: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | using namespace std;string s;main(){cin>>s;set<string>a;while(getline(cin,s))a.insert(s+"\n");for(auto e:a)cout<<e;}
      |                              ^~~~

ソースコード

diff #

#import<bits/stdc++.h>
using namespace std;string s;main(){cin>>s;set<string>a;while(getline(cin,s))a.insert(s+"\n");for(auto e:a)cout<<e;}
0