Problem leftright
User hitarthdangra
Submission Time 2025-06-19 22:35:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

leftright.cpp: In function ‘int main()’:
leftright.cpp:20:16: error: ‘n’ was not declared in this scope
20 | int mid = (n + 1) / 2;
| ^
leftright.cpp:23:20: error: ‘a’ was not declared in this scope
23 | cout << a[i] << " ";
| ^
leftright.cpp:26:20: error: ‘a’ was not declared in this scope
26 | cout << a[i] << " ";
| ^
leftright.cpp:31:1: error: expected ‘}’ at end of input
31 | }
| ^
leftright.cpp:12:31: note: to match this ‘{’
12 | for ( int i = 0; i < Q; i++) {
| ^
leftright.cpp:31:1: error: expected ‘}’ at end of input
31 | }
| ^
leftright.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^