Problem | segmenttree |
---|---|
User | justin271828 |
Submission Time | 2024-09-30 16:25:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
segmenttree.cpp: In function ‘int main()’:
segmenttree.cpp:36:10: error: ‘a’ was not declared in this scope
36 | cin >> a >> b >> c;
| ^
segmenttree.cpp:36:15: error: ‘b’ was not declared in this scope
36 | cin >> a >> b >> c;
| ^
segmenttree.cpp:36:20: error: ‘c’ was not declared in this scope
36 | cin >> a >> b >> c;
| ^
segmenttree.cpp:37:17: error: request for member ‘update’ in ‘n’, which is of pointer type ‘node*’ (maybe you meant to use ‘->’ ?)
37 | if (a == 1) n.update(b, c);
| ^~~~~~
segmenttree.cpp:38:18: error: request for member ‘rmq’ in ‘n’, which is of pointer type ‘node*’ (maybe you meant to use ‘->’ ?)
38 | else cout << n.rmq(b, c);
| ^~~