Submission #984217

#TimeUsernameProblemLanguageResultExecution timeMemory
984217stdfloatCave (IOI13_cave)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "grader.c" using namespace std; void exploreCave(int N) { int a[N]; for (int i = 0; i < N; i++) a[i] = 0; for (int i = 0; i < N; i++) if (tryCombination(a) == i) a[i] = 1; int b[N]; iota(b, b + N, 0); answer(a, b); }

Compilation message (stderr)

/usr/bin/ld: /tmp/cc58sVvQ.o: in function `answer':
cave.cpp:(.text+0x0): multiple definition of `answer'; /tmp/ccG4uSMN.o:grader.c:(.text+0x0): first defined here
/usr/bin/ld: /tmp/cc58sVvQ.o: in function `tryCombination':
cave.cpp:(.text+0x80): multiple definition of `tryCombination'; /tmp/ccG4uSMN.o:grader.c:(.text+0x80): first defined here
/usr/bin/ld: /tmp/cc58sVvQ.o: in function `init()':
cave.cpp:(.text+0x110): multiple definition of `init()'; /tmp/ccG4uSMN.o:grader.c:(.text+0x110): first defined here
/usr/bin/ld: /tmp/cc58sVvQ.o: in function `main':
cave.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccG4uSMN.o:grader.c:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status