Borderou de evaluare (job #2253617)
Utilizator | Data | 4 octombrie 2018 10:46:16 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:19: error: size of array ‘a’ is too large
int a[50010][50010],n,m,A,B,C;
^
user.cpp: In function ‘void citire()’:
user.cpp:13:44: error: ‘a’ was not declared in this scope
for(int j=1;j<=n;j++) if( i != j ) a[i][j]=infinit;
^
user.cpp:15:21: error: ‘a’ was not declared in this scope
{ f>>A>>B>>C; a[A][B]=C; m--;
^
user.cpp: In function ‘void dijkstra(int)’:
user.cpp:29:14: error: ‘a’ was not declared in this scope
{ d[i]=a[X][i];
^
user.cpp:30:43: error: ‘tata’ was not declared in this scope
if( i != X ) if( d[i] < infinit ) tata[i]=X;
^~~~
user.cpp:38:47: error: ‘a’ was not declared in this scope
if( viz[j] == 0 and d[j] > d[poz]+a[poz][j] )
^
user.cpp:40:17: error: ‘tata’ was not declared in this scope
tata[j]=poz;
^~~~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !