Borderou de evaluare (job #1894268)

Utilizator AureliaCretu Aurelia Aurelia Data 26 februarie 2017 18:13:47
Problema Algoritmul Bellman-Ford Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:40:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int it=0; it<G[nod].size(); it++) ^ user.cpp:42:24: error: request for member ‘first’ in ‘it’, which is of non-class type ‘int’ if(dist[it.first] + nod < dist[it.first]) ^ user.cpp:42:47: error: request for member ‘first’ in ‘it’, which is of non-class type ‘int’ if(dist[it.first] + nod < dist[it.first]) ^ user.cpp:44:25: error: request for member ‘first’ in ‘it’, which is of non-class type ‘int’ dist[it.first] = dist[it.first] + it.second; ^ user.cpp:44:42: error: request for member ‘first’ in ‘it’, which is of non-class type ‘int’ dist[it.first] = dist[it.first] + it.second; ^ user.cpp:44:54: error: request for member ‘second’ in ‘it’, which is of non-class type ‘int’ dist[it.first] = dist[it.first] + it.second; ^ user.cpp:45:27: error: request for member ‘first’ in ‘it’, which is of non-class type ‘int’ Q.push(it.first); ^

Ceva nu functioneaza?