Problem | segmenttree |
---|---|
User | ensonchew |
Submission Time | 2025-09-20 16:36:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
segmenttree.cpp:27:21: error: ISO C++ forbids declaration of ‘update’ with no type [-fpermissive]
27 | update(int p, int v){
| ^
segmenttree.cpp: In member function ‘int node::update(int, int)’:
segmenttree.cpp:29:13: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
29 | val = v; return;
| ^~~~~~