Problem | wrongreverse |
---|---|
User | niicoletong |
Submission Time | 2025-06-20 16:16:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
wrongreverse.cpp: In function ‘int main()’:
wrongreverse.cpp:17:21: error: no match for call to ‘(std::vector<int>) (int)’
17 | a[i] = b(n + i - 1);
| ^
wrongreverse.cpp:26:21: error: no match for call to ‘(std::vector<int>) (int)’
26 | b[i] = a(n + i - 1);
| ^
wrongreverse.cpp:32:4: error: expected ‘}’ before ‘else’
32 | } else {
| ^~~~
wrongreverse.cpp:29:15: note: to match this ‘{’
29 | if (db == b) {
| ^
wrongreverse.cpp:33:14: error: no match for ‘operator<’ (operand types are ‘std::basic_ostream<char>’ and ‘const char [2]’)
33 | 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/bi