Submission #370108

#TimeUsernameProblemLanguageResultExecution timeMemory
370108AdamGSCombo (IOI18_combo)C++14
Compilation error
0 ms0 KiB
#include "combo.h" #include<bits/stdc++.h> using namespace std; #define rep(a, b) for(int a = 0; a < (b); ++a) string guess_sequence(int N) { string ans=""; char T[4]={'A','B','X','Y'}; rep(i, 4) { int p=press(ans+T[i]); if(p==1) { ans+=T[i]; break; } } rep(i, N-1) { rep(j, 4) { if(T[j]!=ans[0]) { int p=press(ans+T[j]); if(p==i+2) { ans+=T[j]; break; } } } } return ans; } int main() { }

Compilation message (stderr)

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