#675
Se dă un arbore binar care conține valori numere naturale. Să se afișeze frunzele acestui arbore.
Notă: pentru reprezentarea arborelui se recomandă alocarea statică, folosind tablouri.
Problema | BiFrunze | Operații I/O |
![]() bifrunze.in /bifrunze.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54851726 | Utilizator | |
Fișier | bifrunze.cpp | Dimensiune | 323 B |
Data încărcării | 10 Decembrie 2024, 12:39 | Scor / rezultat | Eroare de compilare |
bifrunze.cpp:4:7: error: expected nested-name-specifier before 'namespce' using namespce std; ^ bifrunze.cpp:4:7: error: 'namespce' has not been declared bifrunze.cpp:4:16: error: expected ';' before 'std' using namespce std; ^ bifrunze.cpp:4:16: error: 'std' does not name a type bifrunze.cpp:5:1: error: 'ifstream' does not name a type ifstream fin("bifrunze.in"); ^ bifrunze.cpp:6:1: error: 'ofstream' does not name a type ofstream fout("bifrunze.out"); ^ bifrunze.cpp: In function 'int main()': bifrunze.cpp:10:5: error: 'fin' was not declared in this scope fin>>n; ^ bifrunze.cpp:14:12: error: 'stg' was not declared in this scope if(stg==0 && dr==0) fout<<i<<" "; ^ bifrunze.cpp:14:29: error: 'fout' was not declared in this scope if(stg==0 && dr==0) fout<<i<<" "; ^ bifrunze.cpp:18:5: error: 'fout' was not declared in this scope fout.close(); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema BiFrunze 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ă.