Borderou de evaluare (job #3187352)
Utilizator | Data | 28 decembrie 2023 15:54:48 | |
---|---|---|---|
Problema | Flux maxim | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void BFS(int)':
main.cpp:32:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | for (int i = 0; i < G[u].size(); ++ i) {
| ~~^~~~~~~~~~~~~
main.cpp:45:18: error: return-statement with a value, in function returning 'void' [-fpermissive]
45 | return (f[n] == true);
| ~~~~~~^~~~~~~~
main.cpp: In function 'int DFS(int, int)':
main.cpp:57:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
57 | for (int &i = ptr[node]; i < G[node].size(); ++ i) {
| ~~^~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:95:15: error: could not convert 'BFS(1)' from 'void' to 'bool'
95 | while (BFS(1)) {
| ~~~^~~
| |
| void
main.cpp:100:18: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
100 | while (t = DFS(1, 1e9)) {
| ~~^~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !