Problem wrongreverse
User Codebreakerguy2
Submission Time 2026-11-02 15:10:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

wrongreverse.cpp: In function ‘int main()’:
wrongreverse.cpp:6:10: error: ‘i’ was not declared in this scope
6 | for (i = 0; i < n; i++){
| ^
wrongreverse.cpp:7:16: error: ‘a’ was not declared in this scope
7 | cin >> a[i]
| ^
wrongreverse.cpp:9:10: error: ‘i’ was not declared in this scope
9 | for (i = n-1; i >=0; i--){
| ^
wrongreverse.cpp:10:16: error: ‘b’ was not declared in this scope
10 | cin >> b[i]
| ^
wrongreverse.cpp:12:9: error: ‘a’ was not declared in this scope
12 | if (a[i] == b[i]){
| ^
wrongreverse.cpp:12:11: error: ‘i’ was not declared in this scope
12 | if (a[i] == b[i]){
| ^
wrongreverse.cpp:12:17: error: ‘b’ was not declared in this scope
12 | if (a[i] == b[i]){
| ^
wrongreverse.cpp:17:21: error: expect