#675
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 | #50894177 | Utilizator | |
Fișier | bifrunze.cpp | Dimensiune | 496 B |
Data încărcării | 13 Mai 2024, 09:50 | Scor / rezultat | Eroare de compilare |
bifrunze.cpp:4:14: error: variable 'std::ifstream fin' has initializer but incomplete type ifstream fin ("bifrunze.in"); ^ bifrunze.cpp:5:15: error: variable 'std::ofstream fout' has initializer but incomplete type ofstream fout ("bifrunze.out"); ^ bifrunze.cpp:7:1: error: 'vector' does not name a type vector<int> G[1010]; ^ bifrunze.cpp: In function 'int main()': bifrunze.cpp:18:10: error: 'G' was not declared in this scope G[y].push_back(i); ^ bifrunze.cpp:20:13: error: 'G' was not declared in this scope G[z].push_back(i); ^ bifrunze.cpp:23:12: error: 'G' was not declared in this scope if(G[i].size() == 1) ^
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ă.