F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_30273357_20031.cpp: In function 'int main()':
0_0_30273357_20031.cpp:44:28: error: no matching function for call to 'std::vector<std::pair<int, int> >::emplace_back(<brace-enclosed initializer list>)'
    G[x].emplace_back({y, z});
                            ^
0_0_30273357_20031.cpp:44:28: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:69:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_30273357_20031.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/vector.tcc:91:7: note: void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {}; _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >]
       vector<_Tp, _Alloc>::
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/vector.tcc:91:7: note:   candidate expects 0 arguments, 1 provided
0_0_30273357_20031.cpp:45:28: error: no matching function for call to 'std::vector<std::pair<int, int> >::emplace_back(<brace-enclosed initializer list>)'
    G[y].emplace_back({x, z});
                            ^
0_0_30273357_20031.cpp:45:28: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:69:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_30273357_20031.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/vector.tcc:91:7: note: void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {}; _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >]
       vector<_Tp, _Alloc>::
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/vector.tcc:91:7: note:   candidate expects 0 arguments, 1 provided


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-23 07:31:07, Gzip enabled