Submission #552273

#TimeUsernameProblemLanguageResultExecution timeMemory
552273pckienCombo (IOI18_combo)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #define fto(i, a, b) for (int i = a; i <= b; ++i) using namespace std; int n; string haha[5] = {"A", "B", "X", "Y"}; string Sol(){ int hoho, hehe = 0; string tmp = "", G = ""; fto(i, 1, n){ fto(j, 0, 3){ tmp = G + haha[j]; cout << tmp << endl; cin >> hoho; if (hehe < hoho){ hehe = hoho; G = tmp; break; } } } return G; } int main(){ cin >> n; cout << Sol() << endl; return 0; }

Compilation message (stderr)

/usr/bin/ld: /tmp/cczLzzIk.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cc8fkyWn.o:combo.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/cczLzzIk.o: in function `main':
grader.cpp:(.text.startup+0x4c): undefined reference to `guess_sequence[abi:cxx11](int)'
collect2: error: ld returned 1 exit status