| Problem | descsort |
|---|---|
| User | Dan64091 |
| Submission Time | 2025-11-16 23:38:37 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
descsort.cpp: In function ‘int main()’:
descsort.cpp:20:14: error: request for member ‘begin’ in ‘outarr’, which is of non-class type ‘std::vector<int> [N]’
20 | sort(outarr.begin(),outarr.end());
| ^~~~~
descsort.cpp:20:29: error: request for member ‘end’ in ‘outarr’, which is of non-class type ‘std::vector<int> [N]’
20 | sort(outarr.begin(),outarr.end());
| ^~~
descsort.cpp:23:8: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::vector<int>’)
23 | cout << outarr[r];
| ~~~~ ^~ ~~~~~~~~~
| | |
| | std::vector<int>
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/iostream:39,
from descsort.cpp:2:
/usr/include/c++/9/ostream:108:7: note: candidate: ‘std::basic_