Borderou de evaluare (job #2302310)
| Utilizator | Data | 14 decembrie 2018 09:59:57 | |
|---|---|---|---|
| Problema | Algoritmul Bellman-Ford | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:9:19: error: conflicting declaration 'int p'
int m,n,i,j,k,l,r,p,d[N]={N},e[1500000],a,b,c,v[N],u[N];
^
main.cpp:8:10: note: previous declaration as 'P* p'
P *g[N],*p;
^
main.cpp: In function 'int main()':
main.cpp:25:19: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(!v[p->x])
^
main.cpp:17:98: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("bellmanford.in","r",stdin),freopen("bellmanford.out","w",stdout),scanf("%d%d",&n,&m);
^
main.cpp:17:98: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:17:98: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:19:42: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&a,&b,&c),A(a,b,c);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
