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

Compile Error

segmenttree2.cpp:15:19: error: ‘gp_hash_table’ does not name a type; did you mean ‘hashtable’?
15 | #define hashtable gp_hash_table
| ^~~~~~~~~~~~~
segmenttree2.cpp:18:1: note: in expansion of macro ‘hashtable’
18 | hashtable<int,int> fw;
| ^~~~~~~~~
segmenttree2.cpp:15:19: error: ‘gp_hash_table’ does not name a type; did you mean ‘hashtable’?
15 | #define hashtable gp_hash_table
| ^~~~~~~~~~~~~
segmenttree2.cpp:19:1: note: in expansion of macro ‘hashtable’
19 | hashtable<int,int> fw2;
| ^~~~~~~~~
segmenttree2.cpp: In function ‘void update(long long int, long long int, long long int)’:
segmenttree2.cpp:22:3: error: ‘fw’ was not declared in this scope
22 | fw[i]+=v;
| ^~
segmenttree2.cpp:23:3: error: ‘fw2’ was not declared in this scope
23 | fw2[i]-=v*(x-1);
| ^~~
segmenttree2.cpp:26:3: error: ‘fw’ was not declared in this