Borderou de evaluare (job #2026119)

Utilizator dragos231456Neghina Dragos dragos231456 Data 23 septembrie 2017 18:50:05
Problema Dragoni Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:12:59: error: expected initializer before ‘longa’ long long n,m,dragoni[805],p[805],heap[805],a,b,c,cerlong longa,w[805],costadd,finish,mx,start1; ^ user.cpp: In function ‘void bfs(long long int)’: user.cpp:29:13: error: ‘finish’ was not declared in this scope finish=vecini[start][i].first; ^ user.cpp:35:17: error: ‘mx’ was not declared in this scope mx=max(mx,dragoni[finish]); ^ user.cpp:39:8: error: ‘mx’ was not declared in this scope g<<mx; ^ user.cpp: In function ‘void up(long long int)’: user.cpp:48:12: error: ‘w’ was not declared in this scope if(w[heap[poz]]<w[heap[poz/2]]) ^ user.cpp: In function ‘void down(long long int)’: user.cpp:64:24: error: ‘w’ was not declared in this scope if(poz*2<=l && w[heap[poz*2]]<mn) mn=w[heap[poz*2]], d=poz*2; ^ user.cpp:65:26: error: ‘w’ was not declared in this scope if(poz*2+1<=l && w[heap[poz*2+1]]<mn) mn=w[heap[poz*2+1]], d=poz*2+1; ^ user.cpp:66:15: error: ‘w’ was not declared in this scope if(mn<w[heap[poz]]) ^ user.cpp: In function ‘void init(long long int)’: user.cpp:79:9: error: ‘w’ was not declared in this scope w[i]=inf; ^ user.cpp:82:5: error: ‘w’ was not declared in this scope w[t]=0; l=n; ^ user.cpp:83:21: error: ‘costadd’ was not declared in this scope dragon=v[t].dg; costadd=v[t].ct; ^ user.cpp: In function ‘void Dijkstra(long long int)’: user.cpp:91:24: error: ‘costadd’ was not declared in this scope cout<<dragon<<' '<<costadd<<endl; ^ user.cpp:97:13: error: ‘finish’ was not declared in this scope finish=vecini[start][i].first; ^ user.cpp:98:18: error: ‘w’ was not declared in this scope cost=w[start]+vecini[start][i].second; ^ user.cpp:107:25: error: ‘w’ was not declared in this scope rez=min(rez,costadd+w[n]); ^

Ceva nu functioneaza?