Problem duckhunt17
User Elwinthenerd
Submission Time 2025-11-18 10:46:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt17.cpp: In function ‘int main()’:
duckhunt17.cpp:28:25: error: request for member ‘size’ in ‘mp.std::unordered_map<int, int>::operator[]((a - 1))’, which is of non-class type ‘std::unordered_map<int, int>::mapped_type’ {aka ‘int’}
28 | cout << mp[a-1].size() << "\n";
| ^~~~