Submission #234029

#TimeUsernameProblemLanguageResultExecution timeMemory
234029BinyominCombo (IOI18_combo)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "combo.h" using namespace std ; string guess_sequence(int N) { vector < char > a = { 'A', 'B', 'X', 'Y' } ; char x ; string ans = "", p = ""; int cnt = 0 , ok = 0 ; while( cnt != N ) { for( int i = 0 ; i < 4 ; i ++ ) { if( ok && x == a[i] ) continue ; p = ans + a[i] ; int tt = press( p ); if( tt > cnt ) { cnt ++ ; ans += a[i] ; if( !ok ) { ok = 1; x = a[i] ; } } } } return ans ; } int main() { int N ; cin >> N ; guess_sequence(N) ; }

Compilation message (stderr)

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