Problem fuelstation
User bribritt
Submission Time 2024-01-19 09:36:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fuelstation.cpp: In function ‘int main()’:
fuelstation.cpp:31:13: error: expected primary-expression before ‘[’ token
31 | up(station[i].x,d,station[i].a);
| ^
fuelstation.cpp:31:28: error: expected primary-expression before ‘[’ token
31 | up(station[i].x,d,station[i].a);
| ^
fuelstation.cpp:31:3: error: ‘up’ was not declared in this scope
31 | up(station[i].x,d,station[i].a);
| ^~
fuelstation.cpp:32:26: error: expected primary-expression before ‘[’ token
32 | if(rt->val() <= station[i].b) ans=min(ans,rt->val());
| ^