Problem | historical |
---|---|
User | dacashew |
Submission Time | 2024-03-12 18:01:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
historical.cpp:147:10: error: ‘NMAX’ was not declared in this scope
147 | int tr[4*NMAX];
| ^~~~
historical.cpp: In function ‘void update(long long int, long long int)’:
historical.cpp:149:5: error: ‘NMAX’ was not declared in this scope
149 | i+=NMAX;
| ^~~~
historical.cpp:150:2: error: ‘tr’ was not declared in this scope; did you mean ‘tm’?
150 | tr[i]+=x;
| ^~
| tm
historical.cpp: In function ‘long long int query(long long int, long long int)’:
historical.cpp:159:9: error: ‘NMAX’ was not declared in this scope
159 | for(l+=NMAX,r+=NMAX;l<r;l>>=1,r>>=1){
| ^~~~
historical.cpp:160:23: error: ‘tr’ was not declared in this scope; did you mean ‘r’?
160 | if(l&1) ans=max(ans,tr[l++]);
| ^~
| r
historical.cpp:161:23: error: ‘tr’ was not declared in this scope; did you mean ‘r’?
161 | if(r&1)