Problem watching
User Josh28
Submission Time 2023-02-19 23:40:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

watching.cpp: In function ‘void solve()’:
watching.cpp:83:40: error: expected ‘;’ before ‘for’
83 | smol = min(n, smol); big= min(n, smol)
| ^
| ;
84 | for (ll q = 0; q < n; q++) {cin >> event[q]; m = max(m, event[q]);}
| ~~~
watching.cpp:84:20: error: ‘q’ was not declared in this scope
84 | for (ll q = 0; q < n; q++) {cin >> event[q]; m = max(m, event[q]);}
| ^