답안 #754520

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
754520 2023-06-07T23:06:50 Z ValiAntonie Hotter Colder (IOI10_hottercolder) C++14
컴파일 오류
0 ms 0 KB
#include "grader.h"
#include<bits/stdc++.h>
using namespace std;
 
int Guess (int x);
 
int HC(int N){
int st=1,dr=N;
Guess(st);
int a = Guess(dr);
while(st!=dr){
	int mij = (st+ dr) >> 1;
	if(a==-1)
		dr= mij;
	else if(a==1)//close to l
		st = mij + 1;
	else return mij;
	Guess(st);
	a = Guess(dr);
}
if(a == 0)
return mij;
else
    return st;
}

Compilation message

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:22:8: error: 'mij' was not declared in this scope
   22 | return mij;
      |        ^~~