Borderou de evaluare (job #2175820)
Utilizator | Data | 16 martie 2018 19:16:32 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:17: error: size of array ‘a’ is too large
int a[maxN][maxN],n,m,k=1;
^
user.cpp: In function ‘void citire()’:
user.cpp:18:5: error: ‘a’ was not declared in this scope
a[x][y]=a[y][x]=c;
^
user.cpp:22:10: error: ‘a’ was not declared in this scope
if(a[i][j]==0) a[i][j]=infinit;
^
user.cpp: In function ‘void dijkstra()’:
user.cpp:38:34: error: ‘a’ was not declared in this scope
if((viz[i]==0) && (d[k]+a[k][i]<d[i]))
^
user.cpp: In function ‘int main()’:
user.cpp:51:12: error: ‘a’ was not declared in this scope
d[i]=a[s][i];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !