sortbooks.cpp:5:7: error: wrong number of template arguments (1, should be at least 2)
5 | map<ll> m;
| ^
In file included from /usr/include/c++/10/map:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:81,
from sortbooks.cpp:1:
/usr/include/c++/10/bits/stl_map.h:100:11: note: provided for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
100 | class map
| ^~~
sortbooks.cpp:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
6 | main(){ios::sync_with_stdio(false);
| ^~~~
sortbooks.cpp: In function 'int main()':
sortbooks.cpp:12:10: error: invalid types 'int[int]' for array subscript
12 | if (m[h]==0) m[h]++,c[++l]=h;
| ^
sortbooks.cpp:12:19: error: invalid types 'int[int]' for array subscript
12 | if (m[h]==0) m[h]++,c[++l]=h;
| ^