Problem | swapsort |
---|---|
User | RyanGao |
Submission Time | 2022-12-30 09:07:28 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swapsort.cpp: In function ‘int main()’:
swapsort.cpp:8:2: error: ‘cint’ was not declared in this scope; did you mean ‘uint’?
8 | cint >> size;
| ^~~~
| uint
swapsort.cpp:26:7: error: ‘isOrdered’ was not declared in this scope
26 | if (isOrdered(data, 0, size)) {
| ^~~~~~~~~
swapsort.cpp:33:8: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘int’)
33 | cout >> *(data + index);
| ~~~~ ^~ ~~~~~~~~~~~~~~~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
swapsort.cpp:33:8: note: candidate: ‘operator>>(int, int)’ <built-in>
33 | cout >> *(data + index);
| ~~~~~^~~~~~~~~~~~~~~~~~
swapsort.cpp:33:8: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘int’
In file included from /