Problem race
User PlayVoltz
Submission Time 2023-10-27 15:12:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

race.cpp: In function ‘void build(int, int, int)’:
race.cpp:76:33: error: no matching function for call to ‘std::vector<std::pair<int, int> >::erase(<brace-enclosed initializer list>)’
76 | adj[i.fi].erase({c,i.se});
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from race.cpp:2:
/usr/include/c++/9/bits/stl_vector.h:1427:7: note: candidate: ‘std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::const_iterator) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::iterator = __gnu_