Problem lasers2
User Liooow
Submission Time 2025-03-31 17:47:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lasers2.cpp: In function ‘void solve()’:
lasers2.cpp:38:8: error: ‘l’ was not declared in this scope
38 | cin>>l[i]>>r[i]>>k[i];
| ^
lasers2.cpp:38:14: error: ‘r’ was not declared in this scope
38 | cin>>l[i]>>r[i]>>k[i];
| ^
lasers2.cpp:38:23: error: invalid types ‘long long int[long long int]’ for array subscript
38 | cin>>l[i]>>r[i]>>k[i];
| ^
lasers2.cpp:41:11: error: ‘n’ was not declared in this scope
41 | repp(i,1,n) pref[i]+=pref[i-1];
| ^
lasers2.cpp:5:36: note: in definition of macro ‘repp’
5 | #define repp(i,x,n) for(int i=x;i<=n;i++)
| ^
lasers2.cpp:43:11: error: ‘n’ was not declared in this scope
43 | repp(i,1,n) if(pref[i]==0) ans++;
| ^
lasers2.cpp:5:36: note: in definition of macro ‘repp’
5 | #d