Problem | segmenttree2 |
---|---|
User | dacashew |
Submission Time | 2023-12-08 11:39:03 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
segmenttree2.cpp: In function ‘void update(long long int, long long int, long long int)’:
segmenttree2.cpp:20:8: error: no match for ‘operator+=’ (operand types are ‘std::map<long long int, long long int>’ and ‘long long int’)
20 | fw[i]+=v;
| ~~~~~^~~
segmenttree2.cpp:21:9: error: no match for ‘operator-=’ (operand types are ‘std::map<long long int, long long int>’ and ‘long long int’)
21 | fw2[i]-=v*(x-1);
| ~~~~~~^~~~~~~~~
segmenttree2.cpp:24:8: error: no match for ‘operator-=’ (operand types are ‘std::map<long long int, long long int>’ and ‘long long int’)
24 | fw[i]-=v;
| ~~~~~^~~
segmenttree2.cpp:25:9: error: no match for ‘operator+=’ (operand types are ‘std::map<long long int, long long int>’ and ‘long long int’)
25 | fw2[i]+=v*y;
| ~~~~~~^~~~~
segmenttree2.cpp: In function ‘long long int sum(long long int)’:
segmenttree2.cpp:31:11: error: no match for ‘operator*