Borderou de evaluare (job #1236002)

Utilizator svalentinValentin Stanciu svalentin Data 1 octombrie 2014 06:43:39
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:42:14: error: base operand of ‘->’ has non-pointer type ‘const std::pair<int, int>’ if (d[l->first] > dist + l->second) { ^ user.cpp:42:33: error: base operand of ‘->’ has non-pointer type ‘const std::pair<int, int>’ if (d[l->first] > dist + l->second) { ^ user.cpp:43:12: error: base operand of ‘->’ has non-pointer type ‘const std::pair<int, int>’ d[l->first] = dist + l->second; ^ user.cpp:43:31: error: base operand of ‘->’ has non-pointer type ‘const std::pair<int, int>’ d[l->first] = dist + l->second; ^ user.cpp:44:29: error: base operand of ‘->’ has non-pointer type ‘const std::pair<int, int>’ t.push(make_pair(d[l->first], l->first)); ^ user.cpp:44:40: error: base operand of ‘->’ has non-pointer type ‘const std::pair<int, int>’ t.push(make_pair(d[l->first], l->first)); ^ user.cpp:14:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dijkstra.in", "r", stdin); ^ user.cpp:15:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dijkstra.out", "w", stdout); ^ user.cpp:17:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &m); ^ user.cpp:27:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d\n", &x, &y, &c); ^

Ceva nu functioneaza?