Borderou de evaluare (job #2953392)
Utilizator | Data | 11 decembrie 2022 12:30:30 | |
---|---|---|---|
Problema | Arbore7 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfs(int, int)':
main.cpp:22:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | for(int i = 0; i < edge[node].size(); i++){
| ~~^~~~~~~~~~~~~~~~~~~
main.cpp:42:9: error: expected '}' before 'else'
42 | else
| ^~~~
main.cpp:40:49: note: to match this '{'
40 | else if(dp[child][0] - 1 > dp[child][1]){
| ^
main.cpp:13:9: warning: unused variable 'i' [-Wunused-variable]
13 | int i;
| ^
main.cpp: In function 'int main()':
main.cpp:56:15: warning: unused variable 'j' [-Wunused-variable]
56 | int n, i, j;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !