Problem frogs
User RandomPerson
Submission Time 2023-01-30 19:55:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

frogs.cpp: In function ‘int32_t main()’:
frogs.cpp:14:7: error: no match for ‘operator[]’ (operand types are ‘std::multimap<long long int, long long int>’ and ‘long long int’)
14 | mm[f[i]]=i;
| ^
frogs.cpp:24:22: error: no match for ‘operator[]’ (operand types are ‘std::multimap<long long int, long long int>’ and ‘long long int’)
24 | v.push_back({x,mm[f[i]]+1});
| ^
frogs.cpp:24:31: error: no matching function for call to ‘std::vector<std::pair<long long int, long long int> >::push_back(<brace-enclosed initializer list>)’
24 | v.push_back({x,mm[f[i]]+1});
| ^
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/in