Borderou de evaluare (job #2313608)
Utilizator | Data | 7 ianuarie 2019 11:02:08 | |
---|---|---|---|
Problema | Flux maxim de cost minim | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:3:22: error: conflicting declaration 'int* w'
int l,n,m,i,s,t,u,w,*w,cp,fl,cs,cu,cm[351],u,v,co[800000],mark[351],dad[351],z[351][351],g[351],c[351][351],d[351][351];
^
main.cpp:3:19: note: previous declaration as 'int w'
int l,n,m,i,s,t,u,w,*w,cp,fl,cs,cu,cm[351],u,v,co[800000],mark[351],dad[351],z[351][351],g[351],c[351][351],d[351][351];
^
main.cpp:3:44: error: redefinition of 'int u'
int l,n,m,i,s,t,u,w,*w,cp,fl,cs,cu,cm[351],u,v,co[800000],mark[351],dad[351],z[351][351],g[351],c[351][351],d[351][351];
^
main.cpp:3:17: note: 'int u' previously declared here
int l,n,m,i,s,t,u,w,*w,cp,fl,cs,cu,cm[351],u,v,co[800000],mark[351],dad[351],z[351][351],g[351],c[351][351],d[351][351];
^
main.cpp: In function 'int main()':
main.cpp:14:42: error: invalid conversion from 'int*' to 'int' [-fpermissive]
for(u=co[u++],cu=cm[u],mark[u]=0,w=z[u];*w;w++)
~~~^
main.cpp:14:9: warning: operation on 'u' may be undefined [-Wsequence-point]
for(u=co[u++],cu=cm[u],mark[u]=0,w=z[u];*w;w++)
~^~~~~~~~
main.cpp:14:45: error: invalid type argument of unary '*' (have 'int')
for(u=co[u++],cu=cm[u],mark[u]=0,w=z[u];*w;w++)
^
main.cpp:15:14: error: invalid type argument of unary '*' (have 'int')
if(c[u][*w]&&cu+d[u][*w]<cm[*w])
^
main.cpp:15:27: error: invalid type argument of unary '*' (have 'int')
if(c[u][*w]&&cu+d[u][*w]<cm[*w])
^
main.cpp:15:34: error: invalid type argument of unary '*' (have 'int')
if(c[u][*w]&&cu+d[u][*w]<cm[*w])
^
main.cpp:17:25: error: invalid type argument of unary '*' (have 'int')
cm[*w]=cu+d[u][*w],dad[*w]=u;
^
main.cpp:17:37: error: invalid type argument of unary '*' (have 'int')
cm[*w]=cu+d[u][*w],dad[*w]=u;
^
main.cpp:17:45: error: invalid type argument of unary '*' (have 'int')
cm[*w]=cu+d[u][*w],dad[*w]=u;
^
main.cpp:18:31: error: invalid type argument of unary '*' (have 'int')
if(!mark[*w])
^
main.cpp:19:31: error: invalid type argument of unary '*' (have 'int')
mark[*w]=1,co[++v]=*w;
^
main.cpp:19:45: error: invalid type argument of unary '*' (have 'int')
mark[*w]=1,co[++v]=*w;
^
main.cpp:22:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !