Problem flows
User aj
Submission Time 2025-11-18 23:36:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flows.cpp: In function ‘int main()’:
flows.cpp:20:9: error: ‘current_water_height’ was not declared in this scope
20 | current_water_height=0;
| ^~~~~~~~~~~~~~~~~~~~
flows.cpp:21:13: error: ‘heights’ was not declared in this scope
21 | if (heights[j]>max_height){
| ^~~~~~~
flows.cpp:27:9: error: ‘heights’ was not declared in this scope
27 | heights[i]=current_water_height
| ^~~~~~~
flows.cpp:27:17: error: ‘i’ was not declared in this scope
27 | heights[i]=current_water_height
| ^