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

Compile Error

twochoices.cpp: In function ‘int main()’:
twochoices.cpp:30:25: error: no matching function for call to ‘std::map<long long int, long long int>::map(const long long int&)’
30 | map<ll,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:288:2: note: candidate: ‘template<class _InputIterator> std::map<_Key, _Tp, _Compare, _Alloc>::map(_InputIterator, _InputIterator, const _Compare&, const allocator_type&)’
288 | map(_InputIterator __first, _InputIterator __last,
| ^~~
/usr/include/c++/9/bits/stl_map.h:288:2: note: template argument deduction/substitution failed:
twochoices.cpp:30:25: note: candidate expects 4 arguments, 1 provided
30 | map<ll,ll>trainees(maxm);
| ^
In f