제출 #754519

#제출 시각아이디문제언어결과실행 시간메모리
754519ValiAntonieHotter Colder (IOI10_hottercolder)C++14
컴파일 에러
0 ms0 KiB
#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==-1) dr= mij; else if(a==1)//close to l st = mij + 1; else return mij; return st; }

컴파일 시 표준 에러 (stderr) 메시지

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:22:9: error: 'mij' was not declared in this scope
   22 |     dr= mij;
      |         ^~~
hottercolder.cpp:24:10: error: 'mij' was not declared in this scope
   24 |     st = mij + 1;
      |          ^~~
hottercolder.cpp:25:13: error: 'mij' was not declared in this scope
   25 | else return mij;
      |             ^~~