Problem | fenwicktree |
---|---|
User | Gladius3482 |
Submission Time | 2022-12-28 14:13:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fenwicktree.cpp: In function ‘void update(long long int, long long int, long long int)’:
fenwicktree.cpp:6:24: error: ‘N’ was not declared in this scope
6 | for (int tx=x; tx <= N; tx += tx&(-tx)) fw[tx] += c,fw2[tx] -= c*(x-1);
| ^
fenwicktree.cpp:7:25: error: ‘N’ was not declared in this scope
7 | for (int ty=y+1; ty <= N; ty += ty&(-ty)) fw[ty] -= c, fw2[ty] += c*y;
| ^