Problem charges
User Ash
Submission Time 2024-03-30 10:51:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

charges.cpp: In function ‘void solve()’:
charges.cpp:54:19: error: wrong number of template arguments (1, should be at least 2)
54 | map<pair<int, int>>, char> f;
| ^~
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from charges.cpp:1:
/usr/include/c++/9/bits/stl_map.h:100:11: note: provided for ‘template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map’
100 | class map
| ^~~
charges.cpp:54:21: error: expected unqualified-id before ‘,’ token
54 | map<pair<int, int>>, char> f;
| ^
charges.cpp:54:23: error: expected unqualified-id before ‘char’
54 | map<pair<int, int>>, char> f;
| ^~~~
charges.cpp:60:13: error: ‘f’ was not declared in this scope
60 | cout <&