Submission #411690

# Submission time Handle Problem Language Result Execution time Memory
411690 2021-05-25T18:10:08 Z faresbasbs Hotter Colder (IOI10_hottercolder) C++14
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
#include "hottercolder.h"
using namespace std;

int g(int val){
	return Guess(val);
}

int HC(int n){
	int l = 0 , r = n , last = -1;
	while(r-l > 1){
		int mid = (l+r+1)/2 , a = g(l+1) , b = g(r);
		if(a == b && a == 0){
			return mid;
		}
		if(b == 1){
			l = mid;
		}else{
			r = mid;
		}
	}
	return r;
}

Compilation message

hottercolder.cpp:2:10: fatal error: hottercolder.h: No such file or directory
    2 | #include "hottercolder.h"
      |          ^~~~~~~~~~~~~~~~
compilation terminated.