Problem bracketex
User NgMinSong123
Submission Time 2023-12-27 13:14:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp: In function ‘int main()’:
bracketex.cpp:9:15: error: wrong number of template arguments (1, should be at least 2)
9 | map<long long> M;
| ^
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from bracketex.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
| ^~~
bracketex.cpp:10:9: error: assignment of read-only location ‘"("[M]’
10 | M["("] = 0;
| ~~~~~~~^~~
bracketex.cpp:11:9: error: assignment of read-only location ‘")"[M]’
11 | M[")"] = 0;
| ~~~~~~~^~~
bracketex.cpp:12:9: error: assignment of read-only location ‘"{"[M]’
12 | M["{"] = 0;
| ~~~~~~~^~~
bracketex.cpp:13:9: error: assignment of read-only location ‘"}"[M]’