Submission #409845

# Submission time Handle Problem Language Result Execution time Memory
409845 2021-05-21T16:31:54 Z soba Swapping Cities (APIO20_swap) C++14
Compilation error
0 ms 0 KB
#include "swap.h"

#include <vector>

void init(int N, int M,
          std::vector<int> U, std::vector<int> V, std::vector<int> W) {

}

int getMinimumFuelCapacity(int X, int Y)
    return -1;
  return 0;
}

Compilation message

swap.cpp: In function 'int getMinimumFuelCapacity(int, int)':
swap.cpp:11:12: error: expected identifier before '-' token
   11 |     return -1;
      |            ^
swap.cpp:11:5: error: named return values are no longer supported
   11 |     return -1;
      |     ^~~~~~
swap.cpp:13:1: error: expected '{' at end of input
   13 | }
      | ^
swap.cpp:13:1: warning: no return statement in function returning non-void [-Wreturn-type]