Problem OrXor
User zyq69
Submission Time 2026-01-13 15:23:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

OrXor.cpp:7:8: error: stray ‘\357’ in program
7 | cin>>N;
| ^
OrXor.cpp:7:9: error: stray ‘\274’ in program
7 | cin>>N;
| ^
OrXor.cpp:7:10: error: stray ‘\233’ in program
7 | cin>>N;
| ^
OrXor.cpp: In function ‘int main()’:
OrXor.cpp:7:8: error: expected ‘;’ before ‘int’
7 | cin>>N;
| ^
| ;
8 | int arr[N]+5;
| ~~~
OrXor.cpp:9:30: error: ‘arr’ was not declared in this scope
9 | for(int a=0; a<N; a++) cin>>arr[a];
| ^~~
OrXor.cpp:16:17: error: ‘arr’ was not declared in this scope
16 | runningorval = arr[0];//first element
| ^~~
OrXor.cpp:31:15: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
31 | answer = max(ans, finalxorval);
| ^~~
| abs