Problem segmenttree2
User giaan1231
Submission Time 2024-12-09 16:46:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree2.cpp:7:1: error: ‘gp_hash_table’ does not name a type
7 | gp_hash_table<int, pii> st;
| ^~~~~~~~~~~~~
segmenttree2.cpp: In function ‘void down(long long int, long long int, long long int)’:
segmenttree2.cpp:11:5: error: ‘st’ was not declared in this scope; did you mean ‘std’?
11 | st[node * 2].first += (mid - l + 1) * st[node].second;
| ^~
| std
segmenttree2.cpp: In function ‘void update(long long int, long long int, long long int, long long int, long long int, long long int)’:
segmenttree2.cpp:22:9: error: ‘st’ was not declared in this scope; did you mean ‘std’?
22 | st[node].first += (r - l + 1) * val;
| ^~
| std
segmenttree2.cpp:30:5: error: ‘st’ was not declared in this scope; did you mean ‘std’?
30 | st[node].first = st[node * 2].first + st[node * 2 + 1].first;
| ^~
| std
segmenttree2.cpp: In function ‘long long