#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 | #20202931 | Utilizator | |
Fișier | bifrunze.cpp | Dimensiune | 683 B |
Data încărcării | 22 Ianuarie 2020, 11:33 | Scor / rezultat | Eroare de compilare |
bifrunze.cpp:7:1: error: 'fstream' does not name a type fstream fin(INPUT); ^ bifrunze.cpp:8:1: error: 'ofstream' does not name a type ofstream fout(OUTPUT); ^ bifrunze.cpp:13:1: error: 'node' does not name a type node vt[1001], v[1001]; ^ bifrunze.cpp:29:5: error: expected ';' at end of member declaration } ^ bifrunze.cpp:20:5: error: expected ';' before 'node' node() { ^ bifrunze.cpp: In function 'void readFile()': bifrunze.cpp:33:5: error: 'fin' was not declared in this scope fin >> n; ^ bifrunze.cpp:34:17: error: 'i' was not declared in this scope for(int n=0;i<n;i++) { ^ bifrunze.cpp:35:16: error: 'vt' was not declared in this scope fin >> vt[i].X >> vt[i].st >> vt[i].dr; ^
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ă.