| Problem | uniquenumbers |
|---|---|
| User | Cat |
| Submission Time | 2026-02-02 15:43:25 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:4:12: error: wrong number of template arguments (1, should be at least 2)
4 | map<int>n;
| ^
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from uniquenumbers.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
| ^~~
uniquenumbers.cpp:6:19: error: invalid types ‘int[int]’ for array subscript
6 | cin >> n[i];
| ^
uniquenumbers.cpp:10:14: error: expected ‘;’ before ‘}’ token
10 | ans++
| ^
| ;
11 | }
| ~