Borderou de evaluare (job #2111696)
Utilizator | Data | 22 ianuarie 2018 16:35:09 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:19: error: size of array ‘a’ is too large
int a[50000][50000],d[50015],t[50015],n,m,x,y,c,Min,k;
^
user.cpp: In function ‘void read()’:
user.cpp:10:40: error: ‘a’ was not declared in this scope
scanf("%d %d %d", &x, &y, &c), a[x][y]=c;
^
user.cpp: In function ‘void init()’:
user.cpp:17:18: error: ‘a’ was not declared in this scope
if (!a[i][j] && i!=j) a[i][j]=INF;
^
user.cpp: In function ‘void dijkstra()’:
user.cpp:30:27: error: ‘a’ was not declared in this scope
if (d[j]>d[k]+a[k][j] && !sel[j]) d[j]=d[k]+a[k][j],t[j]=k;
^
user.cpp: In function ‘void read()’:
user.cpp:8:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &m);
^
user.cpp: In function ‘int main()’:
user.cpp:36:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.in","r",stdin);
^
user.cpp:37:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.out","w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !