| Problem | wall |
|---|---|
| User | Sans12345 |
| Submission Time | 2025-12-31 09:58:41 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
wall.cpp: In function ‘void buildWall(int, int, int*, int*, int*, int*, int*)’:
wall.cpp:179:19: error: ‘root’ was not declared in this scope
179 | if (op[i] == 1) root->chmax(left[i], right[i], height[i]);
| ^~~~
wall.cpp:180:8: error: ‘root’ was not declared in this scope
180 | else root->chmin(left[i], right[i], height[i]);
| ^~~~
wall.cpp:182:40: error: ‘root’ was not declared in this scope
182 | for(int i=0;i<n;i++) finalHeight[i] = root->qry(i,i);
| ^~~~