Problem growingtrees
User haydendoo
Submission Time 2023-04-05 09:11:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

growingtrees.cpp: In function ‘int main()’:
growingtrees.cpp:51:40: error: ‘val’ was not declared in this scope
51 | for(int i=l; i<=r; ++i) if(val==temp){best2=i; break;}
| ^~~