Borderou de evaluare (job #2752432)

Utilizator oana_mireaMirea Oana-Gabriela oana_mirea Data 17 mai 2021 23:32:25
Problema Arbori binari de cautare echilibrati Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In member function 'int ArboreRN::caz5(const int&)': main.cpp:363:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if(aux==NULL) ^~ main.cpp:365:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' return aux->val; ^~~~~~ main.cpp: At global scope: main.cpp:368:8: error: prototype for 'void ArboreRN::caz6(Nod*&, long int&, long int&)' does not match any in class 'ArboreRN' void ArboreRN::caz6(Nod* &aux, long &x, long &y) ^~~~~~~~ main.cpp:67:11: error: candidate is: void ArboreRN::caz6(Nod*&, long long int&, long long int&) void caz6(Nod *&,long long &x,long long &y); ^~~~ main.cpp: In function 'int main()': main.cpp:436:34: error: invalid initialization of non-const reference of type 'long long int&' from an rvalue of type 'long long int' a.caz6(a.radacina,x,y); ^ main.cpp:67:11: note: initializing argument 2 of 'void ArboreRN::caz6(Nod*&, long long int&, long long int&)' void caz6(Nod *&,long long &x,long long &y); ^~~~ Non zero exit status: 1

Ceva nu functioneaza?