Borderou de evaluare (job #2499156)

Utilizator Razvan25Leanca Razvan Razvan25 Data 25 noiembrie 2019 16:17:17
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:10:35: error: declaration of 'a' as multidimensional array must have bounds for all dimensions except the first long n, x, y, m , p , a[Nmax][Nmax], v[Nmax], d[Nmax], i, j; ^ main.cpp:10:44: error: storage size of 'v' isn't known long n, x, y, m , p , a[Nmax][Nmax], v[Nmax], d[Nmax], i, j; ^ main.cpp:10:53: error: storage size of 'd' isn't known long n, x, y, m , p , a[Nmax][Nmax], v[Nmax], d[Nmax], i, j; ^ main.cpp: In function 'int main()': main.cpp:17:9: error: 'a' was not declared in this scope a[x][y] = p; ^ main.cpp:21:17: error: 'a' was not declared in this scope if (a[i][j] == 0) ^ main.cpp:25:16: error: 'a' was not declared in this scope d[i] = a[1][i]; ^ main.cpp:40:47: error: 'a' was not declared in this scope if (v[i] == 0 && d[i] > d[pmax] + a[pmax][i]) ^ Non zero exit status: 1

Ceva nu functioneaza?