| Problem | WA1 |
|---|---|
| User | boomphcoding |
| Submission Time | 2026-02-04 17:42:24 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
WA1.cpp: In function ‘int main()’:
WA1.cpp:8:18: error: wrong number of template arguments (1, should be at least 2)
8 | map<pair<int,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 WA1.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
| ^~~
WA1.cpp:8:20: error: expected unqualified-id before ‘,’ token
8 | map<pair<int,int>>,int> m;
| ^
WA1.cpp:8:21: error: expected unqualified-id before ‘int’
8 | map<pair<int,int>>,int> m;
| ^~~
WA1.cpp:11:3: error: ‘m’ was not declared in this scope
11 | m[make_pair(x,y)]++;
| ^
WA1.cpp:13:13: er