Problem | runaway |
---|---|
User | dakingwawin |
Submission Time | 2024-12-16 10:54:10 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
runaway.cpp: In function ‘int32_t main()’:
runaway.cpp:32:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
32 | if (clone[mid] < temp)
| ^~~~
runaway.cpp:41:21: error: invalid types ‘int(int (*)(void*), void*, int, void*, ...) noexcept[std::ios_base&(std::ios_base&)]’ for array subscript
41 | total = clone[left]-clone[left-1];
| ^
runaway.cpp:41:35: error: invalid types ‘int(int (*)(void*), void*, int, void*, ...) noexcept[std::ios_base& (*)(std::ios_base&)]’ for array subscript
41 | total = clone[left]-clone[left-1];
| ^