Problem woodcutter
User caleb
Submission Time 2024-06-30 11:52:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

woodcutter.cpp: In function ‘long long int horizontal_cut(int)’:
woodcutter.cpp:9:8: error: ‘H’ was not declared in this scope
9 | if(H-X>=X){height=H-X;}
| ^
woodcutter.cpp: In function ‘long long int vertical_cut(int)’:
woodcutter.cpp:14:8: error: ‘W’ was not declared in this scope
14 | if(W-Y>=Y){width=W-Y;}
| ^
woodcutter.cpp:15:16: error: ‘H’ was not declared in this scope
15 | else if (Y>H-Y){width=Y;}
| ^