Problem towers_noi
User reporter
Submission Time 2023-03-17 10:25:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

towers_noi.cpp: In function ‘int main()’:
towers_noi.cpp:15:11: error: ‘class std::unordered_map<int, std::vector<std::pair<int, int> > >’ has no member named ‘push_back’
15 | hori[b].push_back({a, i});
| ^~~~~~~~~
towers_noi.cpp:17:12: error: cannot decompose inaccessible member ‘std::unordered_map<int, std::vector<std::pair<int, int> > >::_M_h’ of ‘std::unordered_map<int, std::vector<std::pair<int, int> > >’
17 | for (auto [i, vec] : hori){
| ^~~~~~~~
In file included from /usr/include/c++/9/unordered_map:47,
from /usr/include/c++/9/functional:61,
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 towers_noi.cpp:1:
/usr/include/c++/9/bits/unordered_map.h:105:18: n