Problem snail
User Usu
Submission Time 2026-01-19 14:48:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snail.cpp: In function ‘int main()’:
snail.cpp:9:31: error: ‘N’ was not declared in this scope
9 | for (long long i = 0; i < N; i++) {
| ^
snail.cpp:13:13: error: ‘curr_height’ was not declared in this scope
13 | if (curr_height >= h) {
| ^~~~~~~~~~~
snail.cpp:25:11: error: ‘nx’ was not declared in this scope; did you mean ‘mx’?
25 | if (h>nx) {
| ^~
| mx
snail.cpp:26:14: error: ‘m’ was not declared in this scope
26 | a=(h-m+dta-1)/day_gain;
| ^
snail.cpp:26:23: error: ‘day_gain’ was not declared in this scope
26 | a=(h-m+dta-1)/day_gain;
| ^~~~~~~~
snail.cpp:32:12: error: ‘curr_height’ was not declared in this scope
32 | if(curr_height >= H) {
| ^~~~~~~~~~~
snail.cpp:32:27: error: ‘H’ was not declared in this