Submission #879829

#TimeUsernameProblemLanguageResultExecution timeMemory
879829LibSplit the Attractions (IOI19_split)C++14
Compilation error
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){ }

Compilation message (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 | }
      | ^