Borderou de evaluare (job #1430799)

Utilizator CalinCojoFMI Cojocaru Calin George CalinCojo Data 8 mai 2015 20:24:18
Problema Heapuri Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:14:19: error: size of array ‘EL’ is too large int EL [1000000003]; ^ user.cpp: In function ‘void pushHP(T)’: user.cpp:35:22: error: ‘EL’ was not declared in this scope swap ( POS [ EL [ HEAP [ i ] ] ] , POS [ EL [ HEAP [ i/2 ] ] ]); ^ user.cpp: In function ‘void HPdown(int)’: user.cpp:45:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while ( !FINHP && 2*i < HEAP.size() ){ ^ user.cpp:54:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if ( 2*i+ 1 <HEAP.size() && HEAP [ i ] > HEAP [2*i + 1 ] && HEAP [ 2*i + 1] < HEAP [ 2*i ] ){ ^ user.cpp:60:22: error: ‘EL’ was not declared in this scope swap ( POS [ EL [ HEAP [ i ] ] ] , POS [ EL [ HEAP [ j ] ] ]); ^ user.cpp: In function ‘void delHP(T)’: user.cpp:75:18: error: ‘EL’ was not declared in this scope swap ( POS [ EL [ HEAP [ i ] ] ] , POS [ poz ] ); ^ user.cpp: In function ‘int main()’: user.cpp:94:13: error: ‘EL’ was not declared in this scope EL [ y ] = POS.back(); ^ user.cpp: In instantiation of ‘void pushHP(T) [with T = int]’: user.cpp:95:24: required from here user.cpp:32:9: warning: unused variable ‘POS_aux’ [-Wunused-variable] int POS_aux, NTH_aux; ^ user.cpp:32:18: warning: unused variable ‘NTH_aux’ [-Wunused-variable] int POS_aux, NTH_aux; ^

Ceva nu functioneaza?