The problem has been reimplemented
You should write the file question.cpp, which must include question.h, and implement the following 3 functions:
void Init(int N);
This function will be called once at the start of the program.
int Alice(int x,int y);
This function is for the character A, and should return the value h.
int Bob(int q,int h);
This function is for the character B, and should return 1 if the answer is "yes", and 0 if the answer is "no"
You program will be run twice, one for Alice and one for Bob. Init will be called at the start for both runs.
To test your program, you can use run the following commands to compile your programs:
g++ -O2 -o grader grader.cpp question.cpp