| Problem | rotarylock |
|---|---|
| User | ForgottenDragon |
| Submission Time | 2025-12-03 21:48:08 |
| 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:33:53: error: invalid operands of types ‘long long int’ and ‘clock_t() noexcept’ {aka ‘long int() noexcept’} to binary ‘operator%’
33 | for(; l<= N; l += ls(l)) ft[l] += a; ft[l] = ft[l]%clock;
| ~~~~~^~~~~~
| | |
| | clock_t() noexcept {a