Problem stepgame
User wongethan8192
Submission Time 2023-02-24 16:25:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

stepgame.cpp:1:1: error: ‘include’ does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
stepgame.cpp: In function ‘int main()’:
stepgame.cpp:4:7: error: ‘cin’ was not declared in this scope
4 | int a;cin>>a;
| ^~~
stepgame.cpp:5:1: error: ‘vector’ was not declared in this scope
5 | vector<int>V;
| ^~~~~~
stepgame.cpp:5:8: error: expected primary-expression before ‘int’
5 | vector<int>V;
| ^~~
stepgame.cpp:6:35: error: ‘V’ was not declared in this scope
6 | for(int b=0;b<a;b++){int d;cin>>d;V.push_back(d);}
| ^
stepgame.cpp:7:8: error: expected primary-expression before ‘int’
7 | vector<int>W=V;
| ^~~
stepgame.cpp:10:24: error: ‘V’ was not declared in this scope
10 | for(int d=c;d<a;){sum+=V[b];best=min(best,sum);}}cout<<best;}
|