#791
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 | #56717971 | Utilizator | |
Fișier | bifrunze1.cpp | Dimensiune | 1.07 KB |
Data încărcării | 03 Martie 2025, 20:14 | Scor / rezultat | Eroare de compilare |
bifrunze1.cpp:10:9: error: field 'st' has incomplete type nod st, dr; ^ bifrunze1.cpp:10:13: error: field 'dr' has incomplete type nod st, dr; ^ bifrunze1.cpp: In function 'void citire(nod*&)': bifrunze1.cpp:26:18: error: 'struct nod' has no member named 'st' citire (rad->st); ^ bifrunze1.cpp:27:18: error: 'struct nod' has no member named 'dr' citire (rad->dr); ^ bifrunze1.cpp: In function 'void preordine(nod*&)': bifrunze1.cpp:36:14: error: 'struct nod' has no member named 'st' if (rad->st==0 && rad->dr==0) ^ bifrunze1.cpp:36:28: error: 'struct nod' has no member named 'dr' if (rad->st==0 && rad->dr==0) ^ bifrunze1.cpp:40:21: error: 'struct nod' has no member named 'st' preordine (rad->st); ^ bifrunze1.cpp:41:21: error: 'struct nod' has no member named 'dr' preordine (rad->dr); ^
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ă.