Borderou de evaluare (job #3164437)

Utilizator GFA03Gavrila Florin-Alexandru GFA03 Data 3 noiembrie 2023 11:40:35
Problema Padure Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int dijkstra(int, int, std::vector<std::vector<int> >&, std::vector<std::vector<int> >&)': main.cpp:38:34: error: 'INT_MAX' was not declared in this scope 38 | std::vector<int> dist(n * m, INT_MAX); // vector of distances from the start node to the other nodes | ^~~~~~~ main.cpp:5:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 4 | #include <queue> +++ |+#include <climits> 5 | main.cpp:47:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 47 | for (int i = 0; i < adj[currentNode].size(); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?