advisor.cpp:19:1: error: 'priority_queue' does not name a type
priority_queue < nodo > q;
^~~~~~~~~~~~~~
advisor.cpp: In function 'void ComputeAdvice(int*, int, int, int)':
advisor.cpp:33:29: error: 'log2' was not declared in this scope
maxbits = ( int ) ceil( log2( N ) );
^~~~
advisor.cpp:33:29: note: suggested alternative: 'long'
maxbits = ( int ) ceil( log2( N ) );
^~~~
long
advisor.cpp:33:23: error: 'ceil' was not declared in this scope
maxbits = ( int ) ceil( log2( N ) );
^~~~
advisor.cpp:44:9: error: 'q' was not declared in this scope
q.push( { i , aparicion[i] } );
^
advisor.cpp:53:24: error: 'q' was not declared in this scope
nodo act = q.top();
^
assistant.cpp: In function 'void Assist(unsigned char*, int, int, int)':
assistant.cpp:4:33: error: 'log2' was not declared in this scope
int numbits = ( int ) ceil( log2( N ) );
^~~~
assistant.cpp:4:33: note: suggested alternative: 'long'
int numbits = ( int ) ceil( log2( N ) );
^~~~
long
assistant.cpp:4:27: error: 'ceil' was not declared in this scope
int numbits = ( int ) ceil( log2( N ) );
^~~~