Problem souvenirs
User TheRaptor
Submission Time 2024-08-03 12:49:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

souvenirs.cpp: In function ‘void rem(int, int, int)’:
souvenirs.cpp:11:54: error: no matching function for call to ‘std::vector<std::pair<int, std::pair<int, int> > >::emplace_back(<brace-enclosed initializer list>)’
11 | roll.emplace_back({arr[c],{pre[arr[c]],nxt[arr[c]]}});
| ^
In file included from /usr/include/c++/9/vector:72,
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 souvenirs.cpp:1:
/usr/include/c++/9/bits/vector.tcc:109:7: note: candidate: ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {}; _Tp = std::pair<int, std::pair<int, int> >; _Alloc = std::allo