Problem | thumper2 |
---|---|
User | ThePwo |
Submission Time | 2025-03-23 16:45:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
thumper2.cpp: In function ‘int32_t main()’:
thumper2.cpp:75:7: error: conflicting declaration ‘auto it’
75 | auto it = mp1.begin();
| ^~
thumper2.cpp:53:7: note: previous declaration as ‘std::__detail::_Node_iterator<std::pair<const int, std::vector<int> >, false, false> it’
53 | auto it = mp1.begin();
| ^~
thumper2.cpp:96:41: error: no match for ‘operator=’ (operand types are ‘std::unordered_map<int, int>’ and ‘std::map<int, int>’)
96 | vv = vector<int>(), mp = map<int, int>(); for (int i = 1; i <= n; i++) vv.push_back(a[i].f - a[i].s);
| ^
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