結果
問題 | No.570 3人兄弟(その1) |
ユーザー | Bantako |
提出日時 | 2018-05-25 00:26:31 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 341 bytes |
コンパイル時間 | 1,720 ms |
コンパイル使用メモリ | 171,264 KB |
実行使用メモリ | 4,500 KB |
最終ジャッジ日時 | 2023-09-11 03:04:15 |
合計ジャッジ時間 | 3,495 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
コンパイルメッセージ
main.cpp:6:1: 警告: ISO C++ では型の無い ‘main’ の宣言を禁止しています [-Wreturn-type] 6 | main(){ | ^~~~ 次のファイルから読み込み: /usr/local/gcc7/include/c++/12.2.0/bits/stl_algobase.h:64, 次から読み込み: /usr/local/gcc7/include/c++/12.2.0/string:50, 次から読み込み: /usr/local/gcc7/include/c++/12.2.0/bits/locale_classes.h:40, 次から読み込み: /usr/local/gcc7/include/c++/12.2.0/bits/ios_base.h:41, 次から読み込み: /usr/local/gcc7/include/c++/12.2.0/ios:42, 次から読み込み: /usr/local/gcc7/include/c++/12.2.0/istream:38, 次から読み込み: /usr/local/gcc7/include/c++/12.2.0/sstream:38, 次から読み込み: /usr/local/gcc7/include/c++/12.2.0/complex:45, 次から読み込み: /usr/local/gcc7/include/c++/12.2.0/ccomplex:39, 次から読み込み: /usr/local/gcc7/include/c++/12.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:54, 次から読み込み: main.cpp:1: メンバ関数 ‘typename std::enable_if<std::__and_<std::is_assignable<_T1&, _U1&&>, std::is_assignable<_T2&, _U2&&> >::value, std::pair<_T1, _T2>&>::type std::pair<_T1, _T2>::operator=(std::pair<_U1, _U2>&&) [with _U1 = int; _U2 = int; _T1 = int; _T2 = char]’ 内, inlined from ‘int main()’ at main.cpp:11:35: /usr/local/gcc7/include/c++/12.2.0/bits/stl_pair.h:607:18: 警告: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 607 | second = std::forward<_U2>(__p.second); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/gcc7/include/c++/12.2.0/bits/stl_pair.h:607:18: 警告: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
ソースコード
#include<bits/stdc++.h> typedef long long ll; using namespace std; int INF = 1LL << 30; int MOD = 1e9+7; main(){ vector<pair<int,char> > v; for(int i = 0;i < 3;i++){ int a; cin >> a; v[i] = make_pair(a,'A' + i); } sort(v.rbegin(),v.rend()); for(auto p:v){ cout << p.second << endl; } }