Borderou de evaluare (job #1255516)
Utilizator | Data | 4 noiembrie 2014 21:03:02 | |
---|---|---|---|
Problema | Smen | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:14:100: error: expected initializer before numeric constant
int n,k,x,y,s,t1,t2,a[705],use[705],dmin[705],ant[705],fr[705],c[705][705],fol[705][705],cost[705]7505],dist,v1[705],v2[705];
^
user.cpp: In function ‘int BellmanFord()’:
user.cpp:31:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<v[nod].size();i++)
^
user.cpp:33:27: error: ‘cost’ was not declared in this scope
newc=dmin[nod]+cost[nod][nod2];
^
user.cpp: In function ‘void Flux()’:
user.cpp:76:9: error: ‘v1’ was not declared in this scope
{ n1=v1[i]; n2=v2[j];
^
user.cpp:76:19: error: ‘v2’ was not declared in this scope
{ n1=v1[i]; n2=v2[j];
^
user.cpp: In function ‘int main()’:
user.cpp:104:18: error: ‘v1’ was not declared in this scope
k1++; v1[k1]=i;
^
user.cpp:113:17: error: ‘cost’ was not declared in this scope
cost[i][j]=abs(i-j);
^
user.cpp:122:14: error: ‘v2’ was not declared in this scope
{ k2++; v2[k2]=j;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !