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

Compile Error

cc1plus: error: ‘::main’ must return ‘int’
wrongreverse.cpp: In function ‘int main()’:
wrongreverse.cpp:17:13: error: no match for call to ‘(std::vector<long long int>) (long long int&)’
17 | a[i] = b(n) + i - 1;
| ^
wrongreverse.cpp:26:14: error: no match for call to ‘(std::vector<long long int>) (long long int&)’
26 | db[i] = a(n) + i - 1;
| ^
wrongreverse.cpp:35:14: error: no match for ‘operator<’ (operand types are ‘std::basic_ostream<char>’ and ‘const char [2]’)
35 | 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