Submission #317324

#TimeUsernameProblemLanguageResultExecution timeMemory
317324soroushCombo (IOI18_combo)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; string guess_sequence(int n){ string ans = ""; for(int i = 1 ; i <= n ; i ++){ string cur = "A"; if(press(ans + "B") == i) cur = "B"; else if(press(ans + "X") == i) cur = "X"; else if(press(ans + "Y") == i) cur = "Y"; ans += cur; } return(ans); }

Compilation message (stderr)

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:9:6: error: 'press' was not declared in this scope
    9 |   if(press(ans + "B") == i)
      |      ^~~~~