Problem | bookshelf |
---|---|
User | Potato3218 |
Submission Time | 2023-03-26 00:10:28 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bookshelf.cpp:7:26: error: wrong number of template arguments (1, should be at least 2)
7 | unordered_map<int,map<int>::iterator> dict;
| ^
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from bookshelf.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
| ^~~
bookshelf.cpp:7:37: error: template argument 2 is invalid
7 | unordered_map<int,map<int>::iterator> dict;
| ^
bookshelf.cpp:7:37: error: template argument 5 is invalid
bookshelf.cpp: In function ‘int32_t main()’:
bookshelf.cpp:17:11: error: invalid types ‘int[long long int]’ for array subscript
17 | dict[st] = mp.find(b);
| ^