제출 #879829

#제출 시각아이디문제언어결과실행 시간메모리
879829LibSplit the Attractions (IOI19_split)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "split.h" using namespace std; vector <vector <int> > adj; vector <int> TVector; int cpos[200003]; deque <int> clist; int find_split(int n, int a, int b, int c, vector <int> s, vector <int> e){ }

컴파일 시 표준 에러 (stderr) 메시지

split.cpp:8:5: error: ambiguating new declaration of 'int find_split(int, int, int, int, std::vector<int>, std::vector<int>)'
    8 | int find_split(int n, int a, int b, int c, vector <int> s, vector <int> e){
      |     ^~~~~~~~~~
In file included from split.cpp:2:
split.h:7:18: note: old declaration 'std::vector<int> find_split(int, int, int, int, std::vector<int>, std::vector<int>)'
    7 | std::vector<int> find_split(int n, int a, int b, int c, std::vector<int> p, std::vector<int> q);
      |                  ^~~~~~~~~~
split.cpp: In function 'int find_split(int, int, int, int, std::vector<int>, std::vector<int>)':
split.cpp:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
   10 | }
      | ^