#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 | #4822777 | Utilizator | |
Fișier | bifrunze.cpp | Dimensiune | 244 B |
Data încărcării | 28 Martie 2017, 09:29 | Scor / rezultat | Eroare de compilare |
bifrunze.cpp:2:7: error: expected nested-name-specifier before 'nampespace' using nampespace std; ^ bifrunze.cpp:2:7: error: 'nampespace' has not been declared bifrunze.cpp:2:18: error: expected ';' before 'std' using nampespace std; ^ bifrunze.cpp:2:18: error: 'std' does not name a type bifrunze.cpp:3:1: error: 'ifstream' does not name a type ifstream f("bifrunze.in"); ^ bifrunze.cpp:4:1: error: 'ofstream' does not name a type ofstream g("bifrunze.out"); ^ bifrunze.cpp: In function 'int main()': bifrunze.cpp:7:2: error: 'f' was not declared in this scope {f>>n; ^ bifrunze.cpp:9:15: error: 'X3' was not declared in this scope { f>>x1>>x2>>X3; ^ bifrunze.cpp:10:23: error: 'g' was not declared in this scope if(x2==0 and x3==0) g<<i<<" ";} ^ bifrunze.cpp:11:6: error: 'g' was not declared in this scope g.close(); ^
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ă.