#672
Postordine
Se dă un arbore binar care conține valori numere naturale. Să se afișeze valorile din arbore în urma parcurgerii în postordine.
Problema | Postordine | Operații I/O |
postordine.in /postordine.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #35482161 | Utilizator | |
Fișier | postordine.cpp | Dimensiune | 633 B |
Data încărcării | 10 Martie 2022, 20:06 | Scor / rezultat | Eroare de compilare |
postordine.cpp:2:14: warning: missing terminating " character [enabled by default] ifstream fin("postordine.in); ^ postordine.cpp:2:1: error: missing terminating " character ifstream fin("postordine.in); ^ postordine.cpp:2:1: error: 'ifstream' does not name a type postordine.cpp: In function 'void post(int)': postordine.cpp:13:9: error: 'fout' was not declared in this scope fout << a[m] << " "; ^ postordine.cpp: In function 'int main()': postordine.cpp:19:5: error: 'cin' was not declared in this scope cin >> n; ^ postordine.cpp:22:9: error: 'fin' was not declared in this scope fin >> a[i] >> st[i] >> dr[i]; ^ postordine.cpp:27:5: error: 'fin' was not declared in this scope fin.close(); ^ postordine.cpp:35:5: error: 'fout' was not declared in this scope fout.close(); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Postordine 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ă.