Borderou de evaluare (job #2342379)

Utilizator Storm_FireFox1Matei Gardus Storm_FireFox1 Data 12 februarie 2019 19:29:30
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 dijkstra(int)': main.cpp:5:18: warning: left shift count >= width of type [-Wshift-count-overflow] #define INF 1 << 32 ^ main.cpp:31:16: note: in expansion of macro 'INF' d[i] = INF; ^~~ main.cpp:45:34: error: invalid use of member function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]' (did you forget the '()' ?) for (int i = 0; i < a[x].size; i++) { ~~~~~^~~~ main.cpp: In function 'int main()': main.cpp:5:18: warning: left shift count >= width of type [-Wshift-count-overflow] #define INF 1 << 32 ^ main.cpp:62:20: note: in expansion of macro 'INF' if(d[i] == INF) ^~~ Non zero exit status: 1

Ceva nu functioneaza?