Borderou de evaluare (job #3281933)

Utilizator razvanigarazvaniga stanos razvaniga Data 4 martie 2025 09:43:31
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void print_data()': main.cpp:6:13: error: 'INT_MAX' was not declared in this scope 6 | #define inf INT_MAX | ^~~~~~~ main.cpp:35:23: note: in expansion of macro 'inf' 35 | if(dist[i] == inf) | ^~~ main.cpp:5:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 4 | #include <vector> +++ |+#include <climits> 5 | main.cpp: In function 'void dijkstra()': main.cpp:6:13: error: 'INT_MAX' was not declared in this scope 6 | #define inf INT_MAX | ^~~~~~~ main.cpp:44:19: note: in expansion of macro 'inf' 44 | dist[i] = inf; | ^~~ main.cpp:6:13: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 6 | #define inf INT_MAX | ^~~~~~~ main.cpp:44:19: note: in expansion of macro 'inf' 44 | dist[i] = inf; | ^~~ main.cpp:57:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 57 | for(int i = 0; i < graph[current_node].size(); i ++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?