Borderou de evaluare (job #1692958)

Utilizator Player1Player 1 Player1 Data 21 aprilie 2016 23:42:49
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:24:21: error: ‘class std::priority_queue<int>’ has no member named ‘front’ int nod = q.front(); ^ user.cpp:31:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < neigh[nod].size(); ++i) ^ user.cpp:11:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bellmanford.in", "r", stdin); ^ user.cpp:12:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bellmanford.out", "w", stdout); ^ user.cpp:14:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d ", &n, &m); ^ user.cpp:19:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d ", &x, &y, &c); ^

Ceva nu functioneaza?