Problem fenwicktree
User Reverberate
Submission Time 2023-01-07 00:47:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fenwicktree.cpp:13:47: error: stray ‘\357’ in program
13 | for (int tx=x; tx <= N; tx += tx&(-tx))fw[tx] += v, fw2[tx] -= v*(x-1);
| ^
fenwicktree.cpp:13:48: error: stray ‘\274’ in program
13 | for (int tx=x; tx <= N; tx += tx&(-tx))fw[tx] += v, fw2[tx] -= v*(x-1);
| ^
fenwicktree.cpp:13:49: error: stray ‘\211’ in program
13 | for (int tx=x; tx <= N; tx += tx&(-tx))fw[tx] += v, fw2[tx] -= v*(x-1);
| ^
fenwicktree.cpp: In member function ‘void fenwick_tree::update(long long int, long long int, long long int)’:
fenwicktree.cpp:13:47: error: expected ‘)’ before ‘fw’
13 | for (int tx=x; tx <= N; tx += tx&(-tx))fw[tx] += v, fw2[tx] -= v*(x-1);
| ~ ^ ~~
|