Submission #311967

#TimeUsernameProblemLanguageResultExecution timeMemory
311967kylych03Mechanical Doll (IOI18_doll)C++14
Compilation error
0 ms0 KiB
#include "doll.h"
#include <bits/stdc++.h>
#include "grader.cpp"
using namespace std;
int vis[200002];
void create_circuit(int M, std::vector<int> A) {
  int N = A.size();

  std::vector<int> C(M + 1);
    vector <int> X, Y;
  for (int i = 0; i <N; ++i) {

    if(i==N)
        C[i]=0;
    else
        C[i] = A[i];
  }


  answer(C, X, Y);
}

Compilation message (stderr)

/usr/bin/ld: /tmp/ccfNCbYf.o: in function `answer(std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)':
grader.cpp:(.text+0x1f0): multiple definition of `answer(std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'; /tmp/cc9EmTsd.o:doll.cpp:(.text+0x1f0): first defined here
/usr/bin/ld: /tmp/ccfNCbYf.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cc9EmTsd.o:doll.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status