Submission #855679

#TimeUsernameProblemLanguageResultExecution timeMemory
855679IS_RushdiCombo (IOI18_combo)C++17
Compilation error
0 ms0 KiB
#include "combo.h" using namespace std; typedef long long ll; string guess_sequence(int N) { string p = ""; string x = "ABXY"; string S = ""; for(int i = 1; i <= N; i++){ for(int j = 0; j < 4; j++){ if(x[j] == z) continue; p = S; p+=x[j]; int coin = press(p); if(coin == i){ S+=x[j]; break; } } } return S; }

Compilation message (stderr)

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:11:20: error: 'z' was not declared in this scope
   11 |         if(x[j] == z) continue;
      |                    ^