Borderou de evaluare (job #1892313)
Utilizator | Data | 24 februarie 2017 21:16:59 | |
---|---|---|---|
Problema | Jungla | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void read()’:
user.cpp:69:22: error: invalid conversion from ‘void*’ to ‘int*’ [-fpermissive]
G[x].l=realloc(G[x].l,G[x].nr*sizeof(int));
^
user.cpp:72:22: error: invalid conversion from ‘void*’ to ‘int*’ [-fpermissive]
G[y].l=realloc(G[y].l,G[y].nr*sizeof(int));
^
user.cpp: In function ‘int BFS(int)’:
user.cpp:108:18: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if (d[u]==d[v] && !o[u] && !o[v])
^
user.cpp:118:15: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if (p[u]==v)
^
user.cpp: In function ‘void read()’:
user.cpp:63:21: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in,"%d",&n);
^
user.cpp:64:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in,"%ld",&m);
^
user.cpp:67:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
{fscanf(in,"%d %d",&x,&y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !