Problem grassplant
User PlayVoltz
Submission Time 2023-10-05 17:06:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

grassplant.cpp: In function ‘int32_t main()’:
grassplant.cpp:103:36: error: ‘val’ was not declared in this scope
103 | st->update(in[head[a]], in[a], val);
| ^~~
grassplant.cpp:107:40: error: ‘val’ was not declared in this scope
107 | if (a!=b)st->update(in[a]+1, in[b], val);
| ^~~