#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 | #50246857 | Utilizator | |
Fișier | bifrunze.cpp | Dimensiune | 455 B |
Data încărcării | 02 Aprilie 2024, 09:28 | Scor / rezultat | Eroare de compilare |
bifrunze.cpp:4:14: warning: missing terminating " character [enabled by default] ifstream fin("bifrunze.in); ^ bifrunze.cpp:4:1: error: missing terminating " character ifstream fin("bifrunze.in); ^ bifrunze.cpp:5:15: error: expected ',' or '...' before '(' token ofstream fout("bifrunze.out"); ^ bifrunze.cpp:5:31: error: expected ')' before ';' token ofstream fout("bifrunze.out"); ^ bifrunze.cpp: In function 'void citire()': bifrunze.cpp:9:11: error: invalid operands of types 'std::ifstream(std::ofstream) {aka std::basic_ifstream<char>(std::basic_ofstream<char>)}' and 'long long int' to binary 'operator>>' fin>> n; ^ bifrunze.cpp:11:17: error: invalid operands of types 'std::ifstream(std::ofstream) {aka std::basic_ifstream<char>(std::basic_ofstream<char>)}' and 'long long int' to binary 'operator>>' fin>>a[i]>>st[i]>>dr[i]; ^ bifrunze.cpp: In function 'int main()': bifrunze.cpp:15:25: error: 'Citire' was not declared in this scope Citire(); ^ bifrunze.cpp:16:15: error: 'i' was not declared in this scope if(st[i]==0 && dr[i]==0) ^ bifrunze.cpp:18:9: error: 'fout' was not declared in this scope fout<<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ă.