Problem segmenttree2
User user123
Submission Time 2023-08-12 20:24:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree2.cpp:13:13: error: variable or field ‘update’ declared void
13 | void update(map<int, ll> &fwtree, int pos, ll x)
| ^~~
segmenttree2.cpp:13:13: error: ‘map’ was not declared in this scope
segmenttree2.cpp:3:1: note: ‘std::map’ is defined in header ‘<map>’; did you forget to ‘#include <map>’?
2 | #include <unordered_map>
+++ |+#include <map>
3 | using namespace std;
segmenttree2.cpp:13:17: error: expected primary-expression before ‘int’
13 | void update(map<int, ll> &fwtree, int pos, ll x)
| ^~~
segmenttree2.cpp:13:24: error: expected primary-expression before ‘>’ token
13 | void update(map<int, ll> &fwtree, int pos, ll x)
| ^
segmenttree2.cpp:13:27: error: ‘fwtree’ was not declared in this scope; did you mean ‘fwtree2’?
13 | void update(map<int, ll> &fwtree, int pos, ll x)
|