Problem | descsort |
---|---|
User | Dolphy |
Submission Time | 2022-12-27 11:19:15 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
descsort.cpp: In function ‘int main()’:
descsort.cpp:11:27: error: invalid types ‘<unresolved overloaded function type>[int*]’ for array subscript
11 | sort[list, list+length];
| ^
descsort.cpp:12:30: error: invalid types ‘<unresolved overloaded function type>[int*]’ for array subscript
12 | reverse[list, list+length];
| ^
descsort.cpp:14:14: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘int’)
14 | cout >> list[i];
| ~~~~ ^~ ~~~~~~~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
descsort.cpp:14:14: note: candidate: ‘operator>>(int, int)’ <built-in>
14 | cout >> list[i];
| ~~~~~^~~~~~~~~~
descsort.cpp:14:14: note: no kno