| Problem | uniquenumbers |
|---|---|
| User | Daembt |
| Submission Time | 2026-01-25 13:05:23 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:12:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
12 | sort(list.begin(),list.end());
| ^~~~
| qsort
uniquenumbers.cpp:13:13: error: ‘unique’ was not declared in this scope
13 | list.erase(unique(list.begin(),list.end()),list.end());
| ^~~~~~
uniquenumbers.cpp:14:7: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’})
14 | cout >> list.size();
| ~~~~ ^~ ~~~~~~~~~~~
| | |
| | std::vector<int>::size_type {aka long unsigned int}
| std::ostream {aka std::basic_ostream<char>}
uniquenumbers.cpp:14:7: note: candidate: ‘operator>>(int, std::vector<int>::size_type {aka long unsigned int})’ <built-in>
14