Problem snail
User JhoCyber
Submission Time 2024-12-19 20:18:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snail.cpp: In function ‘int32_t main()’:
snail.cpp:10:5: error: expected initializer before ‘for’
10 | for (int i=0; i<n; i++){
| ^~~
snail.cpp:10:19: error: ‘i’ was not declared in this scope
10 | for (int i=0; i<n; i++){
| ^
snail.cpp:17:5: error: expected unqualified-id before ‘while’
17 | while(d<h){
| ^~~~~
snail.cpp:21:5: error: ‘day’ was not declared in this scope
21 | day = d/n;
| ^~~