Problem | grassplant |
---|---|
User | PlayVoltz |
Submission Time | 2023-10-05 16:42:20 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
grassplant.cpp: In member function ‘void node::up(long long int, long long int, long long int)’:
grassplant.cpp:37:33: error: ‘struct node’ has no member named ‘update’
37 | else l->update(i,m,k),r->up(m+1,j,k);
| ^~~~~~
grassplant.cpp: At global scope:
grassplant.cpp:51:13: error: expected type-specifier before ‘st’
51 | } *root=new st(0,200005);
| ^~
grassplant.cpp: In function ‘void hldupdate(long long int, long long int, long long int)’:
grassplant.cpp:86:3: error: ‘st’ was not declared in this scope; did you mean ‘std’?
86 | st->up(in[head[a]], in[a], val);
| ^~
| std
grassplant.cpp:90:11: error: ‘st’ was not declared in this scope; did you mean ‘std’?
90 | if (a!=b)st->up(in[a]+1, in[b], val);
| ^~
| std
grassplant.cpp: In function ‘long long int hldquery(long long int, long lo