Problem segmenttree2
User dacashew
Submission Time 2023-12-08 12:24:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree2.cpp:17:1: error: ‘gp_hash_table’ does not name a type
17 | gp_hash_table<int,int> fw;
| ^~~~~~~~~~~~~
segmenttree2.cpp:18:1: error: ‘gp_hash_table’ does not name a type
18 | gp_hash_table<int,int> fw2;
| ^~~~~~~~~~~~~
segmenttree2.cpp: In function ‘void update(long long int, long long int, long long int)’:
segmenttree2.cpp:21:3: error: ‘fw’ was not declared in this scope
21 | fw[i]+=v;
| ^~
segmenttree2.cpp:22:3: error: ‘fw2’ was not declared in this scope
22 | fw2[i]-=v*(x-1);
| ^~~
segmenttree2.cpp:25:3: error: ‘fw’ was not declared in this scope
25 | fw[i]-=v;
| ^~
segmenttree2.cpp:26:3: error: ‘fw2’ was not declared in this scope
26 | fw2[i]+=v*y;
| ^~~
segmenttree2.cpp: In function ‘long long int sum(long long int)’:
segmenttree2.cpp:32:6: error: ‘fw’ was not declared in this scope
32 | s+=fw[i]*x+fw2[i];
|