Problem graphcraft
User jeongwonho64
Submission Time 2023-06-04 10:46:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

graphcraft.cpp: In function ‘int graphcraft(int, int, std::vector<std::pair<int, int> >*)’:
graphcraft.cpp:40:57: error: expected ‘}’ before ‘)’ token
40 | adj[i].push_back({{(ll)j.first,(ll)j.second});
| ~ ^
graphcraft.cpp:40:57: error: no matching function for call to ‘std::vector<std::pair<long long int, long long int> >::push_back(<brace-enclosed initializer list>)’
In file included from /usr/include/c++/9/vector:67,
from graphcraft.h:1,
from graphcraft.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:1184:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<long long int, long long int>]’
1184