Problem snail
User Vinayak01
Submission Time 2024-02-14 20:44:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snail.cpp: In function ‘int main()’:
snail.cpp:34:5: error: ‘remain’ was not declared in this scope; did you mean ‘main’?
34 | if(remain == 0){
| ^~~~~~
| main
snail.cpp:35:11: error: ‘days’ was not declared in this scope
35 | cout << days-1 << " " << N-1 << endl;
| ^~~~
snail.cpp:38:15: error: redeclaration of ‘long long int remain’
38 | long long remain = H % pfx[N - 1];
| ^~~~~~
snail.cpp:34:5: note: ‘<typeprefixerror>remain’ previously declared here
34 | if(remain == 0){
| ^~~~~~
snail.cpp:50:1: error: expected ‘}’ at end of input
50 | }
| ^
snail.cpp:17:12: note: to match this ‘{’
17 | int main() {
| ^