Submission #1164607

#TimeUsernameProblemLanguageResultExecution timeMemory
1164607crispxxCave (IOI13_cave)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #define all(x) x.begin(), x.end() #define eb emplace_back #define pb push_back #define ar array #define nl '\n' #include "cave.h" #include "grader.c" void exploreCave(int n) { int S[n]{}, D[n]; for(int i = 0; i < n; i++) { int cur = tryCombination(S); if(cur == -1) break; for(int j = 0; j < n; j++) { if(S[j]) continue; S[j] = !S[j]; if(tryCombination(S) > cur) break; S[j] = !S[j]; } } for(int i = 0; i < n; i++) { S[i] = !S[i]; D[i] = tryCombination(S); S[i] = !S[i]; } answer(S, D); }

Compilation message (stderr)

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