#791
BiFrunze1
Se consideră un arbore binar în care nodurile memorează numere naturale nenule. Să se afișeze valorile memorate în nodurile terminale ale arborelui, în ordine crescătoare.
Problema | BiFrunze1 | Operații I/O |
bifrunze1.in /bifrunze1.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #16169800 | Utilizator | |
Fișier | bifrunze1.cpp | Dimensiune | 712 B |
Data încărcării | 10 Iunie 2019, 09:44 | Scor / rezultat | Eroare de compilare |
bifrunze1.cpp:2:36: error: stray '#' in program [14:03, 7/6/2019] Demetriad David: #include <bits/stdc++.h> ^ bifrunze1.cpp:1:1: error: expected unqualified-id before '[' token [14:03, 7/6/2019] Demetriad David: ^ bifrunze1.cpp:10:1: error: 'vector' does not name a type vector <int> rez; ^ bifrunze1.cpp: In function 'void dfs(int)': bifrunze1.cpp:25:9: error: 'rez' was not declared in this scope rez.push_back(i); ^ bifrunze1.cpp: In function 'int main()': bifrunze1.cpp:30:30: error: 'stdin' was not declared in this scope freopen("bifrunze1.in","r",stdin); ^ bifrunze1.cpp:30:35: error: 'freopen' was not declared in this scope freopen("bifrunze1.in","r",stdin); ^ bifrunze1.cpp:31:31: error: 'stdout' was not declared in this scope freopen("bifrunze1.out","w",stdout); ^ bifrunze1.cpp:32:27: error: 'scanf' was not declared in this scope while(scanf("%d",&v[++n])>0) ; ^ bifrunze1.cpp:35:8: error: 'rez' was not declared in this scope sort(rez.begin(),rez.end()); ^ bifrunze1.cpp:35:29: error: 'sort' was not declared in this scope sort(rez.begin(),rez.end()); ^ bifrunze1.cpp:36:17: error: unable to deduce 'auto&&' from 'rez' for(auto it : rez) ^ bifrunze1.cpp:37:20: error: 'printf' was not declared in this scope printf("%d ",it); ^ bifrunze1.cpp:29:7: warning: unused variable 'i' [-Wunused-variable] int i,j; ^ bifrunze1.cpp:29:9: warning: unused variable 'j' [-Wunused-variable] int i,j; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema BiFrunze1 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ă.