Problem pigeonhole
User yc
Submission Time 2025-06-05 11:28:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pigeonhole.cpp:3:18: error: wrong number of template arguments (1, should be at least 2)
3 | #define int long long;
| ^~~~
pigeonhole.cpp:4:6: note: in expansion of macro ‘int’
4 | map< int , int > m;
| ^~~
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from pigeonhole.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
| ^~~
pigeonhole.cpp:4:10: error: expected unqualified-id before ‘,’ token
4 | map< int , int > m;
| ^
pigeonhole.cpp:3:13: error: expected unqualified-id before ‘long’
3 | #define int long long;
| ^~~~
pigeonhole.cpp:4:12: note: in expansion of macro ‘int’
4 | map< int , int > m;<