#675
BiFrunze
Se dă un arbore binar care conține valori numere naturale. Să se afișeze frunzele acestui arbore.
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 | #43557415 | Utilizator | |
Fișier | bifrunze.cpp | Dimensiune | 440 B |
Data încărcării | 03 Mai 2023, 13:30 | Scor / rezultat | Eroare de compilare |
bifrunze.cpp: In function 'void citire()': bifrunze.cpp:11:9: error: 'n' was not declared in this scope fin >> n; ^ bifrunze.cpp:13:16: error: 'x' was not declared in this scope fin >> x[i] >> st[i] >> dr[i]; ^ bifrunze.cpp:13:24: error: 'st' was not declared in this scope fin >> x[i] >> st[i] >> dr[i]; ^ bifrunze.cpp:13:33: error: 'dr' was not declared in this scope fin >> x[i] >> st[i] >> dr[i]; ^ bifrunze.cpp: In function 'void rezolvare()': bifrunze.cpp:18:23: error: 'n' was not declared in this scope for (int i = 1; i <= n; i++) ^ bifrunze.cpp:19:13: error: 'st' was not declared in this scope if (st[i] == 0 && dr[i] == 0) ^ bifrunze.cpp:19:27: error: 'dr' was not declared in this scope if (st[i] == 0 && dr[i] == 0) ^
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ă.