Submission #307960

# Submission time Handle Problem Language Result Execution time Memory
307960 2020-09-29T16:41:36 Z tjdgus4384 Swapping Cities (APIO20_swap) C++14
Compilation error
0 ms 0 KB
#include<bits/stdc++.h>
using namespace std;
vector<int> U, V, W;
int N, M;

int init(int n, int m, vector<int> u, vector<int> v, vector<int w){
}

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

Compilation message

swap.cpp:6:65: error: template argument 1 is invalid
    6 | int init(int n, int m, vector<int> u, vector<int> v, vector<int w){
      |                                                                 ^
swap.cpp:6:65: error: template argument 2 is invalid
swap.cpp:6:65: error: template argument 1 is invalid
swap.cpp:6:65: error: template argument 2 is invalid
swap.cpp:6:65: error: template argument 1 is invalid
swap.cpp:6:65: error: template argument 2 is invalid
swap.cpp:6:54: error: 'vector' is not a type
    6 | int init(int n, int m, vector<int> u, vector<int> v, vector<int w){
      |                                                      ^~~~~~
swap.cpp:6:60: error: expected ',' or '...' before '<' token
    6 | int init(int n, int m, vector<int> u, vector<int> v, vector<int w){
      |                                                            ^
swap.cpp: In function 'int init(int, int, std::vector<int>, std::vector<int>, int)':
swap.cpp:7:1: warning: no return statement in function returning non-void [-Wreturn-type]
    7 | }
      | ^