Submission #409845

#TimeUsernameProblemLanguageResultExecution timeMemory
409845sobaSwapping Cities (APIO20_swap)C++14
Compilation error
0 ms0 KiB
#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 (stderr)

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]