Borderou de evaluare (job #2680170)

Utilizator valentin50517Vozian Valentin valentin50517 Data 2 decembrie 2020 20:34:29
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 'std::vector<int> shortest_path(const std::vector<std::vector<std::pair<int, int> > >&, int)': main.cpp:17:24: error: 'INT_MAX' was not declared in this scope dist.push_back(INT_MAX); ^~~~~~~ main.cpp:31:31: error: 'INT_MAX' was not declared in this scope if(dist[y] != INT_MAX){ ^~~~~~~ main.cpp: In function 'int main()': main.cpp:63:23: error: 'INT_MAX' was not declared in this scope cout << (dist[i] == INT_MAX ? 0 : dist[i]) << ' '; ^~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?