Problem segmenttree
User Mimikyu
Submission Time 2025-01-11 19:02:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp: In member function ‘void node::upd(long long int, long long int)’:
segmenttree.cpp:28:8: error: ‘maxi’ was not declared in this scope
28 | if(l)maxi=max(maxi,l->maxi);
| ^~~~
segmenttree.cpp:28:25: error: ‘struct node’ has no member named ‘maxi’
28 | if(l)maxi=max(maxi,l->maxi);
| ^~~~
segmenttree.cpp:29:8: error: ‘maxi’ was not declared in this scope
29 | if(r)maxi=max(maxi,r->maxi);
| ^~~~
segmenttree.cpp:29:25: error: ‘struct node’ has no member named ‘maxi’
29 | if(r)maxi=max(maxi,r->maxi);
| ^~~~