답안 #307960

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
307960 2020-09-29T16:41:36 Z tjdgus4384 자매 도시 (APIO20_swap) C++14
컴파일 오류
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 | }
      | ^