#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 | #16113331 | Utilizator | |
Fișier | bifrunze.cpp | Dimensiune | 348 B |
Data încărcării | 04 Iunie 2019, 11:28 | Scor / rezultat | Eroare de compilare |
bifrunze.cpp: In function 'int main()': bifrunze.cpp:9:5: error: 'in' was not declared in this scope in >> n; ^ bifrunze.cpp:11:36: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int' [-Wformat=] fscanf(fin,"%d%d%d",x,st,dr); ^ bifrunze.cpp:11:36: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'int' [-Wformat=] bifrunze.cpp:11:36: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'int' [-Wformat=] bifrunze.cpp:11:37: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d%d%d",x,st,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ă.