Problem | segmenttree |
---|---|
User | polyda |
Submission Time | 2025-09-20 16:22:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
segmenttree.cpp: In member function ‘int node::rmq(int, int)’:
segmenttree.cpp:20:10: error: ‘min’ was not declared in this scope
20 | return min(l->rmq(x,y),r->rmq(x,y));
| ^~~
segmenttree.cpp: In member function ‘void node::update(int, int)’:
segmenttree.cpp:32:7: error: ‘min’ was not declared in this scope
32 | val=min(l->val,r->val);
| ^~~
segmenttree.cpp: In function ‘int main()’:
segmenttree.cpp:38:2: error: ‘cin’ was not declared in this scope
38 | cin >> n >> q;
| ^~~
segmenttree.cpp:47:4: error: ‘cout’ was not declared in this scope
47 | cout << root->rmq(b,c) << endl;
| ^~~~
segmenttree.cpp:47:30: error: ‘endl’ was not declared in this scope
47 | cout << root->rmq(b,c) << endl;
| ^~~~