#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 | #63967720 | Utilizator | |
| Fișier | bifrunze.cpp | Dimensiune | 337 B |
| Data încărcării | 31 Martie 2026, 11:21 | Scor/rezultat | Eroare de compilare |
bifrunze.cpp:6:1: error: stray '\342' in program ifstream in(“bifrunze.in”); ^ bifrunze.cpp:6:1: error: stray '\200' in program bifrunze.cpp:6:1: error: stray '\234' in program bifrunze.cpp:6:1: error: stray '\342' in program bifrunze.cpp:6:1: error: stray '\200' in program bifrunze.cpp:6:1: error: stray '\235' in program bifrunze.cpp:7:1: error: stray '\342' in program ofstream out(“bifrunze.out”); ^ bifrunze.cpp:7:1: error: stray '\200' in program bifrunze.cpp:7:1: error: stray '\234' in program bifrunze.cpp:7:1: error: stray '\342' in program bifrunze.cpp:7:1: error: stray '\200' in program bifrunze.cpp:7:1: error: stray '\235' in program bifrunze.cpp:16:7: error: stray '\342' in program out << i << “ “; ^ bifrunze.cpp:16:7: error: stray '\200' in program bifrunze.cpp:16:7: error: stray '\234' in program bifrunze.cpp:16:7: error: stray '\342' in program bifrunze.cpp:16:7: error: stray '\200' in program bifrunze.cpp:16:7: error: stray '\234' in program bifrunze.cpp:6:16: error: 'bifrunze' was not declared in this scope ifstream in(“bifrunze.in”); ^ bifrunze.cpp:7:17: error: 'bifrunze' was not declared in this scope ofstream out(“bifrunze.out”); ^ bifrunze.cpp: In function 'int main()': bifrunze.cpp:16:26: error: expected primary-expression before ';' token out << i << “ “; ^
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ă.