Problem ssoca
User wtnetlegend
Submission Time 2025-02-20 00:49:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ssoca.cpp: In function ‘int main()’:
ssoca.cpp:12:6: error: conflicting declaration ‘int a’
12 | int a, b;
| ^
ssoca.cpp:6:6: note: previous declaration as ‘int a [n]’
6 | int a[n];
| ^
ssoca.cpp:16:3: error: expected initializer before ‘cin’
16 | cin >> l >> r;
| ^~~
ssoca.cpp:18:3: error: ‘r’ was not declared in this scope
18 | r = r-l;
| ^