Problem grassplant
User PlayVoltz
Submission Time 2023-10-05 16:42:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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 long int)’:
grassplant.cpp:97:8: error: ‘st’ was not declared in this scope; did you mean ‘std’?
97 | sum+=st->query(in[head[a]], in[a]);
| ^~
| std
grassplant.cpp:101:16: error: ‘st’ was not declared in this scope; did you mean ‘std’?
101 | if (a!=b)sum+=st->query(in[a]+1, in[b]);