Problem wrongreverse
User niicoletong
Submission Time 2025-06-20 16:28:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

wrongreverse.cpp: In function ‘int main()’:
wrongreverse.cpp:15:21: error: no match for call to ‘(std::vector<int>) (int)’
15 | a[i] = b(n - i - 1);
| ^
wrongreverse.cpp:21:22: error: no match for call to ‘(std::vector<int>) (int)’
21 | db[i] = a(n - i - 1);
| ^
wrongreverse.cpp:30:14: error: no match for ‘operator<’ (operand types are ‘std::basic_ostream<char>’ and ‘const char [2]’)
30 | cout << -1 < " ";
| ~~~~~~~~~~ ^ ~~~
| | |
| | const char [2]
| std::basic_ostream<char>
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from wrongreverse.cpp:1:
/usr/include/c++/9/bits/regex.h:1048:5: note: candidate: ‘template<class _BiIter> bool std::__cxx11::operator<(const std::__cxx11