Borderou de evaluare (job #1480718)

Utilizator o_micBianca Costin o_mic Data 3 septembrie 2015 06:07:03
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:10:0: warning: "INFINITY" redefined [enabled by default] #define INFINITY (1 << 30) ^ In file included from /usr/include/math.h:40:0, from /usr/include/c++/4.8/cmath:44, from user.cpp:1: /usr/include/i386-linux-gnu/bits/inf.h:27:0: note: this is the location of the previous definition # define INFINITY (__builtin_inff()) ^ user.cpp: In function ‘void dijkstra(int*, int, int)’: user.cpp:21:9: error: ‘viz’ was not declared in this scope viz[i] = in_queue[i] = 0; ^ user.cpp:21:18: error: ‘in_queue’ was not declared in this scope viz[i] = in_queue[i] = 0; ^ user.cpp:28:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < gr[node].size(); ++i){ ^ user.cpp: In function ‘int main()’: user.cpp:41:24: warning: unused variable ‘minn’ [-Wunused-variable] int n, m, a, b, c, minn, res = 0; ^ user.cpp:41:30: warning: unused variable ‘res’ [-Wunused-variable] int n, m, a, b, c, minn, res = 0; ^

Ceva nu functioneaza?