Submission #925756

#TimeUsernameProblemLanguageResultExecution timeMemory
925756Art_ogoCombo (IOI18_combo)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "combo.h" using namespace std; string guess_sequence(int N) { string p; if(press("AB")){ if(press("A")) fi = "A"; else fi = "B"; } else{ if(press("X")) fi = "X"; else fi = "Y"; } return p; }

Compilation message (stderr)

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:10:13: error: 'fi' was not declared in this scope
   10 |             fi = "A";
      |             ^~
combo.cpp:11:14: error: 'fi' was not declared in this scope
   11 |         else fi = "B";
      |              ^~
combo.cpp:15:13: error: 'fi' was not declared in this scope
   15 |             fi = "X";
      |             ^~
combo.cpp:16:14: error: 'fi' was not declared in this scope
   16 |         else fi = "Y";
      |              ^~