#752
BiArbore
Se consideră un arbore binar alocat dinamic în care nodurile memorează numere naturale nenule. Să se determine valorile memorate în descendenții direcți ai rădăcinii arborelui.
Problema | BiArbore | Operații I/O |
biarbore.in /biarbore.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #49694344 | Utilizator | |
Fișier | biarbore.cpp | Dimensiune | 461 B |
Data încărcării | 12 Martie 2024, 13:07 | Scor / rezultat | Eroare de compilare |
biarbore.cpp:22:1: error: stray '\342' in program if(r->st!= NULL)out<<r->st->info<<” “; ^ biarbore.cpp:22:1: error: stray '\200' in program biarbore.cpp:22:1: error: stray '\235' in program biarbore.cpp:22:1: error: stray '\342' in program biarbore.cpp:22:1: error: stray '\200' in program biarbore.cpp:22:1: error: stray '\234' in program biarbore.cpp:23:1: error: stray '\343' in program else outく<0くく” “; ^ biarbore.cpp:23:1: error: stray '\201' in program biarbore.cpp:23:1: error: stray '\217' in program biarbore.cpp:23:1: error: stray '\343' in program biarbore.cpp:23:1: error: stray '\201' in program biarbore.cpp:23:1: error: stray '\217' in program biarbore.cpp:23:1: error: stray '\343' in program biarbore.cpp:23:1: error: stray '\201' in program biarbore.cpp:23:1: error: stray '\217' in program biarbore.cpp:23:1: error: stray '\342' in program biarbore.cpp:23:1: error: stray '\200' in program biarbore.cpp:23:1: error: stray '\235' in program biarbore.cpp:23:1: error: stray '\342' in program biarbore.cpp:23:1: error: stray '\200' in program biarbore.cpp:23:1: error: stray '\234' in program biarbore.cpp: In function 'int main()': biarbore.cpp:22:42: error: expected primary-expression before ';' token if(r->st!= NULL)out<<r->st->info<<” “; ^ biarbore.cpp:23:27: warning: right operand of comma operator has no effect [-Wunused-value] else outく<0くく” “; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema BiArbore 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ă.