Submission #205870

#TimeUsernameProblemLanguageResultExecution timeMemory
205870dCoding콤보 (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)

combo.cpp: In function 'std::string guess_sequence(long long int)':
combo.cpp:11:15: error: 'press' was not declared in this scope
   11 |         oup = press(ans+av[i]);
      |               ^~~~~
combo.cpp:23:19: error: 'press' was not declared in this scope
   23 |             oup = press(ans+av[j]);
      |                   ^~~~~