제출 #925756

#제출 시각아이디문제언어결과실행 시간메모리
925756Art_ogoCombo (IOI18_combo)C++17
컴파일 에러
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;
}

컴파일 시 표준 에러 (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";
      |              ^~