#639
Inaltime
Se dă vectorul de tați al unui arbore cu rădăcină cu n
noduri. Determinați înălțimea arborelui.
Problema | Inaltime | Operații I/O |
inaltime.in /inaltime.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51234114 | Utilizator | |
Fișier | inaltime.cpp | Dimensiune | 725 B |
Data încărcării | 31 Mai 2024, 10:47 | Scor / rezultat | Eroare de compilare |
inaltime.cpp:8:1: error: stray '\342' in program int depth(int x){ ^ inaltime.cpp:8:1: error: stray '\200' in program inaltime.cpp:8:1: error: stray '\213' in program inaltime.cpp:8:1: error: stray '\342' in program inaltime.cpp:8:1: error: stray '\200' in program inaltime.cpp:8:1: error: stray '\213' in program inaltime.cpp:8:1: error: stray '\342' in program inaltime.cpp:8:1: error: stray '\200' in program inaltime.cpp:8:1: error: stray '\213' in program inaltime.cpp:8:1: error: stray '\342' in program inaltime.cpp:8:1: error: stray '\200' in program inaltime.cpp:8:1: error: stray '\213' in program inaltime.cpp:8:1: error: stray '\342' in program inaltime.cpp:8:1: error: stray '\200' in program inaltime.cpp:8:1: error: stray '\213' in program inaltime.cpp:8:1: error: stray '\342' in program inaltime.cpp:8:1: error: stray '\200' in program inaltime.cpp:8:1: error: stray '\213' in program inaltime.cpp:12:5: error: stray '\342' in program while(x != 0){ ^ inaltime.cpp:12:5: error: stray '\200' in program inaltime.cpp:12:5: error: stray '\213' in program inaltime.cpp:12:5: error: stray '\342' in program inaltime.cpp:12:5: error: stray '\200' in program inaltime.cpp:12:5: error: stray '\213' in program inaltime.cpp:12:5: error: stray '\342' in program inaltime.cpp:12:5: error: stray '\200' in program inaltime.cpp:12:5: error: stray '\213' in program inaltime.cpp:12:5: error: stray '\342' in program inaltime.cpp:12:5: error: stray '\200' in program inaltime.cpp:12:5: error: stray '\213' in program inaltime.cpp:12:5: error: stray '\342' in program inaltime.cpp:12:5: error: stray '\200' in program inaltime.cpp:12:5: error: stray '\213' in program inaltime.cpp:12:5: error: stray '\342' in program inaltime.cpp:12:5: error: stray '\200' in program inaltime.cpp:12:5: error: stray '\213' in program inaltime.cpp:18:5: error: stray '\342' in program } ^ inaltime.cpp:18:5: error: stray '\200' in program inaltime.cpp:18:5: error: stray '\213' in program inaltime.cpp:18:5: error: stray '\342' in program inaltime.cpp:18:5: error: stray '\200' in program inaltime.cpp:18:5: error: stray '\213' in program inaltime.cpp:18:5: error: stray '\342' in program inaltime.cpp:18:5: error: stray '\200' in program inaltime.cpp:18:5: error: stray '\213' in program inaltime.cpp:18:5: error: stray '\342' in program inaltime.cpp:18:5: error: stray '\200' in program inaltime.cpp:18:5: error: stray '\213' in program inaltime.cpp:18:5: error: stray '\342' in program inaltime.cpp:18:5: error: stray '\200' in program inaltime.cpp:18:5: error: stray '\213' in program inaltime.cpp:18:5: error: stray '\342' in program inaltime.cpp:18:5: error: stray '\200' in program inaltime.cpp:18:5: error: stray '\213' in program inaltime.cpp:22:1: error: stray '\342' in program } ^ inaltime.cpp:22:1: error: stray '\200' in program inaltime.cpp:22:1: error: stray '\213' in program inaltime.cpp:22:1: error: stray '\342' in program inaltime.cpp:22:1: error: stray '\200' in program inaltime.cpp:22:1: error: stray '\213' in program inaltime.cpp:22:1: error: stray '\342' in program inaltime.cpp:22:1: error: stray '\200' in program inaltime.cpp:22:1: error: stray '\213' in program inaltime.cpp:22:1: error: stray '\342' in program inaltime.cpp:22:1: error: stray '\200' in program inaltime.cpp:22:1: error: stray '\213' in program inaltime.cpp:22:1: error: stray '\342' in program inaltime.cpp:22:1: error: stray '\200' in program inaltime.cpp:22:1: error: stray '\213' in program inaltime.cpp:22:1: error: stray '\342' in program inaltime.cpp:22:1: error: stray '\200' in program inaltime.cpp:22:1: error: stray '\213' in program inaltime.cpp:25:1: error: stray '\342' in program { ^ inaltime.cpp:25:1: error: stray '\200' in program inaltime.cpp:25:1: error: stray '\213' in program inaltime.cpp:25:1: error: stray '\342' in program inaltime.cpp:25:1: error: stray '\200' in program inaltime.cpp:25:1: error: stray '\213' in program inaltime.cpp:25:1: error: stray '\342' in program inaltime.cpp:25:1: error: stray '\200' in program inaltime.cpp:25:1: error: stray '\213' in program inaltime.cpp:25:1: error: stray '\342' in program inaltime.cpp:25:1: error: stray '\200' in program inaltime.cpp:25:1: error: stray '\213' in program inaltime.cpp:25:1: error: stray '\342' in program inaltime.cpp:25:1: error: stray '\200' in program inaltime.cpp:25:1: error: stray '\213' in program inaltime.cpp:25:1: error: stray '\342' in program inaltime.cpp:25:1: error: stray '\200' in program inaltime.cpp:25:1: error: stray '\213' in program inaltime.cpp:35:5: error: stray '\342' in program for(int i = 1; i <= n; i++){ ^ inaltime.cpp:35:5: error: stray '\200' in program inaltime.cpp:35:5: error: stray '\213' in program inaltime.cpp:35:5: error: stray '\342' in program inaltime.cpp:35:5: error: stray '\200' in program inaltime.cpp:35:5: error: stray '\213' in program inaltime.cpp:35:5: error: stray '\342' in program inaltime.cpp:35:5: error: stray '\200' in program inaltime.cpp:35:5: error: stray '\213' in program inaltime.cpp:35:5: error: stray '\342' in program inaltime.cpp:35:5: error: stray '\200' in program inaltime.cpp:35:5: error: stray '\213' in program inaltime.cpp:35:5: error: stray '\342' in program inaltime.cpp:35:5: error: stray '\200' in program inaltime.cpp:35:5: error: stray '\213' in program inaltime.cpp:35:5: error: stray '\342' in program inaltime.cpp:35:5: error: stray '\200' in program inaltime.cpp:35:5: error: stray '\213' in program inaltime.cpp:41:5: error: stray '\342' in program } ^ inaltime.cpp:41:5: error: stray '\200' in program inaltime.cpp:41:5: error: stray '\213' in program inaltime.cpp:41:5: error: stray '\342' in program inaltime.cpp:41:5: error: stray '\200' in program inaltime.cpp:41:5: error: stray '\213' in program inaltime.cpp:41:5: error: stray '\342' in program inaltime.cpp:41:5: error: stray '\200' in program inaltime.cpp:41:5: error: stray '\213' in program inaltime.cpp:41:5: error: stray '\342' in program inaltime.cpp:41:5: error: stray '\200' in program inaltime.cpp:41:5: error: stray '\213' in program inaltime.cpp:41:5: error: stray '\342' in program inaltime.cpp:41:5: error: stray '\200' in program inaltime.cpp:41:5: error: stray '\213' in program inaltime.cpp:41:5: error: stray '\342' in program inaltime.cpp:41:5: error: stray '\200' in program inaltime.cpp:41:5: error: stray '\213' in program inaltime.cpp:47:1: error: stray '\342' in program } ^ inaltime.cpp:47:1: error: stray '\200' in program inaltime.cpp:47:1: error: stray '\213' in program inaltime.cpp:47:1: error: stray '\342' in program inaltime.cpp:47:1: error: stray '\200' in program inaltime.cpp:47:1: error: stray '\213' in program inaltime.cpp:47:1: error: stray '\342' in program inaltime.cpp:47:1: error: stray '\200' in program inaltime.cpp:47:1: error: stray '\213' in program inaltime.cpp:47:1: error: stray '\342' in program inaltime.cpp:47:1: error: stray '\200' in program inaltime.cpp:47:1: error: stray '\213' in program inaltime.cpp:47:1: error: stray '\342' in program inaltime.cpp:47:1: error: stray '\200' in program inaltime.cpp:47:1: error: stray '\213' in program inaltime.cpp:47:1: error: stray '\342' in program inaltime.cpp:47:1: error: stray '\200' in program inaltime.cpp:47:1: error: stray '\213' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Inaltime 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ă.