advisor.cpp:16:1: error: 'priority_queue' does not name a type
priority_queue < nodo > q;
^~~~~~~~~~~~~~
advisor.cpp: In function 'void empuja(int)':
advisor.cpp:23:13: error: 'WriteAdvice' was not declared in this scope
WriteAdvice( 1 );
^~~~~~~~~~~
advisor.cpp:25:13: error: 'WriteAdvice' was not declared in this scope
WriteAdvice( 0 );
^~~~~~~~~~~
advisor.cpp: In function 'void ComputeAdvice(int*, int, int, int)':
advisor.cpp:30:29: error: 'log2' was not declared in this scope
maxbits = ( int ) ceil( log2( N ) );
^~~~
advisor.cpp:30:29: note: suggested alternative: 'long'
maxbits = ( int ) ceil( log2( N ) );
^~~~
long
advisor.cpp:30:23: error: 'ceil' was not declared in this scope
maxbits = ( int ) ceil( log2( N ) );
^~~~
advisor.cpp:41:9: error: 'q' was not declared in this scope
q.push( { i , aparicion[i] } );
^
advisor.cpp:50: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:2:33: error: 'log2' was not declared in this scope
int numbits = ( int ) ceil( log2( N ) );
^~~~
assistant.cpp:2:33: note: suggested alternative: 'long'
int numbits = ( int ) ceil( log2( N ) );
^~~~
long
assistant.cpp:2:27: error: 'ceil' was not declared in this scope
int numbits = ( int ) ceil( log2( N ) );
^~~~
assistant.cpp:6:21: error: 'GetRequest' was not declared in this scope
int color = GetRequest( );
^~~~~~~~~~
assistant.cpp:12:13: error: 'PutBack' was not declared in this scope
PutBack( quita );
^~~~~~~