Submission #85514

#TimeUsernameProblemLanguageResultExecution timeMemory
85514JustasLeCombo (IOI18_combo)C++17
Compilation error
0 ms0 KiB
/*input 9 1 2 3 7 6 5 5 2 6 */ #include <bits/stdc++.h> #include "combo.h" using namespace std; string guess_sequence(int N) { string ans = ""; string poss = "ABXY"; for (int i = 0; i < 4; i++) { string temp = "" + poss[i]; int cnt = press(temp); if (cnt > 0) { poss.erase(poss.begin() + i); ans += temp; break; } } bool ok = true; int prev = 1; while (ok) { ok = false; for (int i = 0; i < 3; i++) { string newAns = ans + "" + poss[i]; int cnt = press(newAns); if(cnt > prev) { ans = newAns; ok = true; prev = cnt; break; } } } return ans; } int main() { return 0; }

Compilation message (stderr)

/usr/bin/ld: /tmp/cc6rgtEo.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccJ5yB1m.o:combo.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status