Borderou de evaluare (job #1135650)

Utilizator iordache.bogdanIordache Ioan-Bogdan iordache.bogdan Data 8 martie 2014 09:53:09
Problema Cablaj Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘long long int dist(int, int)’: user.cpp:11:14: error: ‘v’ was not declared in this scope return ((v[i].x-v[j].x)*(v[i].x-v[j].x)+(v[i].y-v[j].y)*(v[i].x-v[j].x)) ^ user.cpp:12:1: error: expected ‘;’ before ‘}’ token } ^ user.cpp: In function ‘int main()’: user.cpp:15:8: error: ‘n’ was not declared in this scope f>>n; ^ user.cpp:16:9: error: ‘i’ was not declared in this scope for(i=1;i<=n;i++) ^ user.cpp:17:12: error: ‘v’ was not declared in this scope f>>v[i].x>>v[i].y; ^ user.cpp:19:9: error: ‘i’ was not declared in this scope for(i=1;i<=n;i++) ^ user.cpp:20:9: error: ‘d’ was not declared in this scope d[i]=INF; ^ user.cpp:21:5: error: ‘d’ was not declared in this scope d[1]=0; ^ user.cpp:22:5: error: ‘t’ was not declared in this scope t[1]=-1; ^ user.cpp:24:9: error: ‘Min’ was not declared in this scope Min=INF; ^ user.cpp:25:13: error: ‘i’ was not declared in this scope for(i=1;i<=n;i++) { ^ user.cpp:26:16: error: ‘v’ was not declared in this scope if(v[i]==0 && d[i]<Min) { ^ user.cpp:27:17: error: ‘k’ was not declared in this scope k=i; ^ user.cpp:33:9: error: ‘sol’ was not declared in this scope sol=Min; ^ user.cpp:34:13: error: ‘i’ was not declared in this scope for(i=1;i<=n;i++) ^ user.cpp:35:19: error: ‘k’ was not declared in this scope if(i!=k && v[i]==0 && d[i]>dist(i,k)) { ^

Ceva nu functioneaza?