Problem fuel
User capybara
Submission Time 2023-02-22 23:14:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fuel.cpp: In function ‘int min_top_ups(int, int, int, int, int, std::vector<int>&)’:
fuel.cpp:39:12: error: a function-definition is not allowed here before ‘{’ token
39 | int main() {
| ^
fuel.cpp:51:1: error: expected ‘}’ at end of input
51 | }
| ^
fuel.cpp:6:128: note: to match this ‘{’
6 | int min_top_ups(int num_stations, int length, int tank, int top_ups_so_far, int distance_travelled, vector<int>& gas_stations) {
| ^