Problem descsort
User Dan64091
Submission Time 2025-11-16 23:40:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

descsort.cpp: In function ‘int main()’:
descsort.cpp:14:9: error: request for member ‘pushback’ in ‘bunch’, which is of non-class type ‘std::vector<int> [N]’
14 | bunch.pushback();
| ^~~~~~~~
descsort.cpp:19:13: error: request for member ‘begin’ in ‘bunch’, which is of non-class type ‘std::vector<int> [N]’
19 | sort(bunch.begin(),bunch.end());
| ^~~~~
descsort.cpp:19:27: error: request for member ‘end’ in ‘bunch’, which is of non-class type ‘std::vector<int> [N]’
19 | sort(bunch.begin(),bunch.end());
| ^~~
descsort.cpp:22:8: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::vector<int>’)
22 | cout << bunch[r];
| ~~~~ ^~ ~~~~~~~~
| | |
| | std::vector<int>
| std::ostream {aka std::basic_ostream<c