Problem rabbitmilk
User YellowPurpleDragon
Submission Time 2025-03-24 15:32:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rabbitmilk.cpp: In function ‘int main()’:
rabbitmilk.cpp:8:16: error: wrong number of template arguments (1, should be at least 2)
8 | map<vector<ll>> b(a);
| ^~
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from rabbitmilk.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
| ^~~
rabbitmilk.cpp:17:10: error: invalid types ‘int[long long int]’ for array subscript
17 | b[c].push_back(cn);
| ^
rabbitmilk.cpp:20:10: error: invalid types ‘int[long long int]’ for array subscript
20 | b[c].push_back(cn);
| ^
rabbitmilk.cpp:27:12: error: invalid types ‘int[long long int]’ for array subscript
27 | if (b[i][0]==0) {