Problem wabot
User HighLithop
Submission Time 2025-06-13 12:31:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

wabot.cpp: In function ‘int main()’:
wabot.cpp:42:7: error: ‘x’ was not declared in this scope
42 | if (x.first == prev_level.first){
| ^
wabot.cpp:43:55: error: no matching function for call to ‘std::multiset<std::pair<long long int, long long int> >::insert(<brace-enclosed initializer list>)’
43 | mods.insert({x.first+1, x.second+prev_level.second});
| ^
In file included from /usr/include/c++/9/set:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from wabot.cpp:1:
/usr/include/c++/9/bits/stl_multiset.h:502:7: note: candidate: ‘std::multiset<_Key, _Compare, _Alloc>::iterator std::multiset<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = std::pair<long long int, long long int>; _Compare = std::less<std::pair<long long int, long long int> >; _Alloc = std::allocator&l