advisor.cpp: In function 'void ComputeAdvice(int*, int, int, int)':
advisor.cpp:37:21: error: 'WriteAdvice' was not declared in this scope
for(i=0;i<K+N;i++){WriteAdvice(kta[i]);}
^~~~~~~~~~~
advisor.cpp:37:21: note: suggested alternative: 'ComputeAdvice'
for(i=0;i<K+N;i++){WriteAdvice(kta[i]);}
^~~~~~~~~~~
ComputeAdvice
advisor.cpp:14:8: warning: unused variable 'j' [-Wunused-variable]
int i,j;
^
assistant.cpp: In function 'void Assist(unsigned char*, int, int, int)':
assistant.cpp:11:2: error: 'deque' was not declared in this scope
deque<int>iran;
^~~~~
assistant.cpp:11:2: note: suggested alternative:
In file included from /usr/include/c++/7/deque:64:0,
from /usr/include/c++/7/queue:60,
from assistant.cpp:3:
/usr/include/c++/7/bits/stl_deque.h:831:11: note: 'std::deque'
class deque : protected _Deque_base<_Tp, _Alloc>
^~~~~
assistant.cpp:11:8: error: expected primary-expression before 'int'
deque<int>iran;
^~~
assistant.cpp:13:28: error: 'iran' was not declared in this scope
for(i=0;i<K;i++){if(A[i]){iran.pub(i);}aru[i]=1;}
^~~~
assistant.cpp:13:28: note: suggested alternative: 'srand'
for(i=0;i<K;i++){if(A[i]){iran.pub(i);}aru[i]=1;}
^~~~
srand
assistant.cpp:15:11: error: 'GetRequest' was not declared in this scope
int req=GetRequest();
^~~~~~~~~~
assistant.cpp:16:25: error: 'iran' was not declared in this scope
if(!aru[req]){PutBack(iran.back());iran.pob();}
^~~~
assistant.cpp:16:25: note: suggested alternative: 'srand'
if(!aru[req]){PutBack(iran.back());iran.pob();}
^~~~
srand
assistant.cpp:16:17: error: 'PutBack' was not declared in this scope
if(!aru[req]){PutBack(iran.back());iran.pob();}
^~~~~~~
assistant.cpp:17:14: error: 'iran' was not declared in this scope
if(A[i+K]){iran.pub(req);}
^~~~
assistant.cpp:17:14: note: suggested alternative: 'srand'
if(A[i+K]){iran.pub(req);}
^~~~
srand