advisor.cpp: In function 'void ComputeAdvice(int*, int, int, int)':
advisor.cpp:20:11: error: 'class std::priority_queue<std::pair<int, int> >' has no member named 'push_back'
q.push_back({ls[i],i});
^~~~~~~~~
advisor.cpp:23:13: warning: unused variable 'a' [-Wunused-variable]
int a=q.top().first;
^
assistant.cpp: In function 'void Assist(unsigned char*, int, int, int)':
assistant.cpp:9:21: error: 'q' was not declared in this scope
if(A[i]==1) q.push(i);
^
assistant.cpp:13:17: error: 'q' was not declared in this scope
PutBack(q.front());
^