Problem snail
User 13ikaeel
Submission Time 2024-02-24 08:38:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snail.cpp: In function ‘int main()’:
snail.cpp:3:5: error: ‘cin’ was not declared in this scope
3 | cin >> H >> N;
| ^~~
snail.cpp:5:5: error: ‘vector’ was not declared in this scope
5 | vector<long long> phases(N);
| ^~~~~~
snail.cpp:5:12: error: expected primary-expression before ‘long’
5 | vector<long long> phases(N);
| ^~~~
snail.cpp:7:16: error: ‘phases’ was not declared in this scope
7 | cin >> phases[i];
| ^~~~~~
snail.cpp:20:19: error: ‘phases’ was not declared in this scope; did you mean ‘phase’?
20 | height += phases[phase];
| ^~~~~~
| phase
snail.cpp:23:13: error: ‘cout’ was not declared in this scope
23 | cout << day << " " << phase << endl;
| ^~~~
snail.cpp:23:44: error: ‘endl’