Borderou de evaluare (job #1701376)

Utilizator stefan_bogdanstefan bogdan stefan_bogdan Data 12 mai 2016 21:53:52
Problema Algoritmul Bellman-Ford Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:13:1: error: expected initializer before ‘int’ int WasHere[50000+10], coada[500000+10], fr[50000+10]; ^ user.cpp: In function ‘bool BellManFord()’: user.cpp:32:9: error: ‘d’ was not declared in this scope d[i] = INT_MAX; ^ user.cpp:34:5: error: ‘coada’ was not declared in this scope coada[1] = 1; ^ user.cpp:42:9: error: ‘WasHere’ was not declared in this scope WasHere[nod] = 0; ^ user.cpp:47:16: error: ‘d’ was not declared in this scope if(d[nod] + t[2][p] < d[t[0][p]]) ^ user.cpp:55:21: error: ‘fr’ was not declared in this scope fr[t[0][p]]++; ^ user.cpp:58:17: error: ‘fr’ was not declared in this scope if (fr[t[0][p]] > n-1) ^ user.cpp:68:31: error: ‘d’ was not declared in this scope fprintf(g, "%d ", d[i]); ^ user.cpp:71:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘void Read()’: user.cpp:18:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d %d", &n, &m); ^ user.cpp:21:42: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d %d %d", &x, &y, &c); ^

Ceva nu functioneaza?