Borderou de evaluare (job #2741763)
Utilizator | Data | 18 aprilie 2021 20:43:43 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | c-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:9:2: error: unknown type name 'graf'
graf *next;
^~~~
main.c:13:7: error: variably modified 'a' at file scope
graf *a[maxn];
^
main.c:14:5: error: variably modified 'd' at file scope
int d[maxn], h[maxn], poz[maxn], k;
^
main.c:14:14: error: variably modified 'h' at file scope
int d[maxn], h[maxn], poz[maxn], k;
^
main.c:14:23: error: variably modified 'poz' at file scope
int d[maxn], h[maxn], poz[maxn], k;
^~~
main.c: In function 'add':
main.c:21:10: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
q->next = a[where];
^
main.c: In function 'read':
main.c:28:9: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types]
fscanf(filename, "%d %d", &n, &m);
^~~~~~~~
In file included from /usr/include/features.h:367:0,
from /usr/include/stdio.h:27,
from main.c:1:
/usr/include/stdio.h:443:12: note: expected 'FILE * restrict {aka struct _IO_FILE * restrict}' but argument is of type 'const char *'
extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
^
main.c:32:10: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types]
fscanf(filename, "%d %d %d", &x, &y, &z);
^~~~~~~~
In file included from /usr/include/features.h:367:0,
from /usr/include/stdio.h:27,
from main.c:1:
/usr/include/stdio.h:443:12: note: expected 'FILE * restrict {aka struct _IO_FILE * restrict}' but argument is of type 'const char *'
extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
^
main.c: In function 'dijkstra_heap':
main.c:118:6: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
q = q->next;
^
main.c: In function 'read':
main.c:28:2: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
fscanf(filename, "%d %d", &n, &m);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:32:3: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
fscanf(filename, "%d %d %d", &x, &y, &z);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !