Pagini recente » Cod sursa (job #769019) | Borderou de evaluare (job #257234) | Borderou de evaluare (job #1791835) | Monitorul de evaluare | Borderou de evaluare (job #3188163)
Borderou de evaluare (job #3188163)
Raport evaluator
Compilare:
main.cpp: In function 'bool bfs(int)':
main.cpp:21:32: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
21 | visited[i] = parent[i] = 0;
| ~~~~~~~~~~^~~
main.cpp:33:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | for (int i = 0; i < graph[currentNode].size(); i++) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:53:9: warning: unused variable 'm' [-Wunused-variable]
53 | int m, x, y, c, z, totalCost = 0, i;
| ^
main.cpp:53:12: warning: unused variable 'x' [-Wunused-variable]
53 | int m, x, y, c, z, totalCost = 0, i;
| ^
main.cpp:53:15: warning: unused variable 'y' [-Wunused-variable]
53 | int m, x, y, c, z, totalCost = 0, i;
| ^
main.cpp:53:18: warning: unused variable 'c' [-Wunused-variable]
53 | int m, x, y, c, z, totalCost = 0, i;
| ^
main.cpp:53:21: warning: unused variable 'z' [-Wunused-variable]
53 | int m, x, y, c, z, totalCost = 0, i;
| ^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 303kb | OK | 10 |
| 2 | 0ms | 303kb | OK | 10 |
| 3 | 0ms | 303kb | OK | 10 |
| 4 | 0ms | 557kb | OK | 10 |
| 5 | 1ms | 819kb | OK | 10 |
| 6 | 3ms | 1081kb | OK | 10 |
| 7 | 5ms | 1347kb | OK | 10 |
| 8 | 6ms | 1343kb | OK | 10 |
| 9 | 2ms | 819kb | OK | 10 |
| 10 | 5ms | 1081kb | OK | 10 |
| Punctaj total | 100 |