Problem snail
User JhoCyber
Submission Time 2024-12-19 20:29:22
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:12: error: ‘a’ was not declared in this scope
17 | d+=a[i];
| ^
snail.cpp:20:5: error: ‘day’ was not declared in this scope
20 | day = d/n;
| ^~~