Borderou de evaluare (job #3219509)
Utilizator | Data | 31 martie 2024 15:57:07 | |
---|---|---|---|
Problema | Sate | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int dfs(int, int)':
main.cpp:24:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<zdrang>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | for(int i = 0; i < graf[node].size(); ++i)
| ~~^~~~~~~~~~~~~~~~~~~
main.cpp:28:16: error: no match for 'operator[]' (operand types are 'bool [30001]' and 'zdrang')
28 | if(!viz[next])
| ^
main.cpp:30:16: error: no match for 'operator[]' (operand types are 'bool [30001]' and 'zdrang')
30 | viz[next] = 1;
| ^
main.cpp:31:17: error: cannot convert 'zdrang' to 'int'
31 | dfs(next);
| ^~~~
| |
| zdrang
main.cpp:22:13: note: initializing argument 1 of 'int dfs(int, int)'
22 | int dfs(int node, int cost)
| ~~~~^~~~
main.cpp:34:1: warning: no return statement in function returning non-void [-Wreturn-type]
34 | }
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !