#791
BiFrunze1
Se consideră un arbore binar în care nodurile memorează numere naturale nenule. Să se afișeze valorile memorate în nodurile terminale ale arborelui, în ordine crescătoare.
Problema | BiFrunze1 | Operații I/O |
bifrunze1.in /bifrunze1.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #47439101 | Utilizator | |
Fișier | bifrunze1.cpp | Dimensiune | 600 B |
Data încărcării | 13 Decembrie 2023, 08:50 | Scor / rezultat | Eroare de compilare |
bifrunze1.cpp:8:2: error: 'intval' does not name a type intval; ^ bifrunze1.cpp: In function 'nod* readAB()': bifrunze1.cpp:20:4: error: 'struct nod' has no member named 'val' r->val=x; ^ bifrunze1.cpp:23:1: error: 'retur' was not declared in this scope retur nr; ^ bifrunze1.cpp:23:7: error: expected ';' before 'nr' retur nr; ^ bifrunze1.cpp: In function 'void RSD(nod*)': bifrunze1.cpp:28:19: error: 'struct nod' has no member named 'val' frunze[nrf++] =r->val; ^ bifrunze1.cpp: In function 'int main()': bifrunze1.cpp:39:6: error: 'inti' was not declared in this scope for (inti=0; i<nrf; ++i) ^ bifrunze1.cpp:39:14: error: 'i' was not declared in this scope for (inti=0; i<nrf; ++i) ^ bifrunze1.cpp: In function 'nod* readAB()': bifrunze1.cpp:24:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema BiFrunze1 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.