Problem | snail |
---|---|
User | dieunq1309 |
Submission Time | 2023-10-12 18:05:42 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
snail.cpp: In function ‘int main()’:
snail.cpp:33:21: error: ‘h’ was not declared in this scope
33 | if (daycount*sum < h - maxsum) daycount += 1
| ^
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) {
|