Submission #205871

#TimeUsernameProblemLanguageResultExecution timeMemory
205871dCoding콤보 (IOI18_combo)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "combo.h" using namespace std; #define int long long string guess_sequence(int n) { string ans = ""; int oup; string av = "ABXY"; for(int i = 0; i < 4; i++) { oup = press(ans+av[i]); if(oup) { ans += av[i]; if(i == 0) av = "BXY"; else if(i == 1) av = "AXY"; else if(i == 2) av = "ABY"; else av = "ABX"; break; } } for(int i = 2; i <= n; i++) { for(int j = 0; j < 3; j++) { oup = press(ans+av[j]); if(oup == i) { ans += av[j]; break; } } } return ans; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccvUZpoZ.o: in function `main':
grader.cpp:(.text.startup+0x4c): undefined reference to `guess_sequence[abi:cxx11](int)'
collect2: error: ld returned 1 exit status