Problem ranges
User Dylan
Submission Time 2025-06-20 14:20:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ranges.cpp: In function ‘int main()’:
ranges.cpp:4:6: error: structured binding declaration cannot have type ‘int’
4 | int [i] = 0
| ^~~
ranges.cpp:4:6: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
ranges.cpp:4:6: error: cannot decompose non-array non-class type ‘int’
ranges.cpp:5:2: error: expected ‘;’ before ‘int’
5 | int N = int Q = 1;
| ^~~
ranges.cpp:6:13: error: expected primary-expression before ‘int’
6 | int L[i] = int R[i] = int X[i] = 1
| ^~~