Problem snail
User dieunq1309
Submission Time 2023-10-12 18:05:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snail.cpp: In function ‘int main()’:
snail.cpp:33:46: error: expected ‘;’ before ‘long’
33 | if (daycount*sum < H - maxsum) daycount += 1
| ^
| ;
34 | long long phasecount = 0;
| ~~~~
snail.cpp:36:12: error: ‘phasecount’ was not declared in this scope; did you mean ‘daycount’?
36 | while (phasecount < sumlist.size() && sumlist[phasecount] < tempsum) {
| ^~~~~~~~~~
| daycount
snail.cpp:36:65: error: ‘tempsum’ was not declared in this scope; did you mean ‘tempnam’?
36 | while (phasecount < sumlist.size() && sumlist[phasecount] < tempsum) {
| ^~~~~~~
| tempnam
snail.cpp:40:32: error: ‘ph