| Problem | rotarylock |
|---|---|
| User | ForgottenDragon |
| Submission Time | 2025-12-03 21:47:50 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
rotarylock.cpp:29:6: error: ‘long long int clock’ redeclared as different kind of entity
29 | int clock;
| ^~~~~
In file included from /usr/include/c++/9/ctime:42,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:49,
from rotarylock.cpp:1:
/usr/include/time.h:72:16: note: previous declaration ‘clock_t clock()’
72 | extern clock_t clock (void) __THROW;
| ^~~~~
rotarylock.cpp: In function ‘void update(long long int, long long int, long long int)’:
rotarylock.cpp:34:3: error: expected primary-expression before ‘for’
34 | for(; r <= N; r += ls(r)) ft[r] -= a;
| ^~~
rotarylock.cpp:34:27: error: expected ‘;’ before ‘)’ token
34 | for(; r <= N; r += ls(r)) ft[r] -= a;
| ^
| ;
rotarylock.cpp: In function ‘int main()’:
rotarylock.cpp:51:15: error: assignment of function ‘clock_