Problem twochoices
User carson
Submission Time 2025-12-09 15:40:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

twochoices.cpp: In function ‘int main()’:
twochoices.cpp:30:8: error: wrong number of template arguments (1, should be at least 2)
30 | map<ll>trainees(maxm);
| ^
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from twochoices.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
| ^~~
twochoices.cpp:32:21: error: invalid types ‘int[__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type {aka long long int}]’ for array subscript
32 | trainees[a[i][m+1]] ++;
| ^
twochoices.cpp:36:25: error: invalid types ‘int[int]’ for array subscript
36 | pairs += (n-trainees[i]);
| ^