#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 | #50470523 | Utilizator | |
Fișier | bifrunze1.cpp | Dimensiune | 911 B |
Data încărcării | 10 Aprilie 2024, 18:08 | 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:23:18: error: 'struct nod' has no member named 'st' citire(nodc->st); ^ bifrunze1.cpp:24:18: error: 'struct nod' has no member named 'dr' citire(nodc->dr); ^ bifrunze1.cpp: In function 'void ver(nod*)': bifrunze1.cpp:31:18: error: 'struct nod' has no member named 'st' if(nodc->st==NULL && nodc->dr==NULL) ^ bifrunze1.cpp:31:36: error: 'struct nod' has no member named 'dr' if(nodc->st==NULL && nodc->dr==NULL) ^ bifrunze1.cpp:33:19: error: 'struct nod' has no member named 'st' ver(nodc->st); ^ bifrunze1.cpp:34:19: error: 'struct nod' has no member named 'dr' ver(nodc->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ă.