advisor.cpp: In function 'void ComputeAdvice(int*, int, int, int)':
advisor.cpp:8:38: error: 'late' was not declared in this scope
for(int i=0;i<N;i++)WriteAdvice((late[C[i]]-i?0:1));
^~~~
assistant.cpp: In function 'void Assist(unsigned char*, int, int, int)':
assistant.cpp:15:9: error: 'check' was not declared in this scope
check=A[K+i];
^~~~~
assistant.cpp:16:12: error: 'go' was not declared in this scope
if(go[p]+1)
^~
assistant.cpp:26:12: error: 'ch' was not declared in this scope
ch[del]=A[K+i];
^~
assistant.cpp:26:12: note: suggested alternative: 'c'
ch[del]=A[K+i];
^~
c
assistant.cpp:27:12: error: 'ho' was not declared in this scope
ho[p]=del;
^~