Problem fuel
User yc
Submission Time 2025-06-02 13:43:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fuel.cpp: In function ‘int main()’:
fuel.cpp:11:32: error: ‘y’ was not declared in this scope
11 | for (int i = 0;i<N;i++) {cin>>y;n.push_back(y);}
| ^
fuel.cpp:13:2: error: ‘y’ was not declared in this scope
13 | y = -1;
| ^
fuel.cpp:17:13: error: expected ‘;’ before ‘c’
17 | a = n[x-1]
| ^
| ;
18 | c=c+1;
| ~