結果
問題 | No.8042 本棚 |
ユーザー |
|
提出日時 | 2022-08-03 17:23:13 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 191 bytes |
コンパイル時間 | 2,171 ms |
コンパイル使用メモリ | 182,448 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-13 10:42:20 |
合計ジャッジ時間 | 3,438 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
コンパイルメッセージ
main.cpp: In function 'int main()': main.cpp:3:66: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions] 3 | int main(){int N;cin>>N;vector<pair<string,string>>B(N);for(auto&[a,b]:B)cin>>a>>b;sort(B.begin(),B.end());for(auto[a,b]:B)cout<<a<<" "<<b<<endl;} | ^ main.cpp:3:116: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions] 3 | int main(){int N;cin>>N;vector<pair<string,string>>B(N);for(auto&[a,b]:B)cin>>a>>b;sort(B.begin(),B.end());for(auto[a,b]:B)cout<<a<<" "<<b<<endl;} | ^
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){int N;cin>>N;vector<pair<string,string>>B(N);for(auto&[a,b]:B)cin>>a>>b;sort(B.begin(),B.end());for(auto[a,b]:B)cout<<a<<" "<<b<<endl;}