Problem woodcutter
User AlphanumericUsername
Submission Time 2024-03-19 15:29:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

woodcutter.cpp: In function ‘long long int horizontal_cut(int)’:
woodcutter.cpp:22:16: error: use of ‘next’ before deduction of ‘auto’
22 | auto next = *next(it);
| ^~~~
woodcutter.cpp:23:16: error: use of ‘prev’ before deduction of ‘auto’
23 | auto prev = *prev(it);
| ^~~~
woodcutter.cpp: In function ‘long long int vertical_cut(int)’:
woodcutter.cpp:31:16: error: use of ‘next’ before deduction of ‘auto’
31 | auto next = *next(it);
| ^~~~
woodcutter.cpp:32:16: error: use of ‘prev’ before deduction of ‘auto’
32 | auto prev = *prev(it);
| ^~~~