#755
Postordine1
Se consideră un arbore binar în care nodurile memorează numere naturale nenule. Să se afișeze valorile memorate în arbore în urma parcurgerii în postordine.
Problema | Postordine1 | Operații I/O |
![]() postordine1.in /postordine1.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #57914581 | Utilizator | |
Fișier | postordine1.cpp | Dimensiune | 579 B |
Data încărcării | 30 Aprilie 2025, 15:58 | Scor / rezultat | Eroare de compilare |
postordine1.cpp:4:13: error: variable 'std::ifstream fin' has initializer but incomplete type ifstream fin("postordine1.in"); ^ postordine1.cpp:5:14: error: variable 'std::ofstream fout' has initializer but incomplete type ofstream fout("postordine1.out"); ^ postordine1.cpp: In function 'void SDR(nod*)': postordine1.cpp:19:22: error: 'struct nod' has no member named 'info' cout << p -> info << " "; ^ postordine1.cpp: In function 'void citire(nod*&)': postordine1.cpp:30:12: error: 'struct nod' has no member named 'info' p->info = x; ^ postordine1.cpp:31:21: error: 'read' was not declared in this scope read(p -> st); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Postordine1 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ă.