Borderou de evaluare (job #1045926)

Utilizator gorgorothPurice Ciprian gorgoroth Data 2 decembrie 2013 12:53:31
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:31: error: ‘v’ does not name a type struct muchie {int x,y,cost;};v[100]; ^ user.cpp: In function ‘int main()’: user.cpp:13:7: error: request for member ‘x’ in ‘v[k]’, which is of non-class type ‘int’ {v[k].x=x; ^ user.cpp:14:6: error: request for member ‘y’ in ‘v[k]’, which is of non-class type ‘int’ v[k].y=y; ^ user.cpp:15:6: error: request for member ‘cost’ in ‘v[k]’, which is of non-class type ‘int’ v[k].cost=z; ^ user.cpp:18:17: error: ‘sort’ was not declared in this scope sort (v,v+m,comp) ^ user.cpp:19:1: error: expected ‘;’ before ‘ms’ ms=0; ^ user.cpp:20:10: error: expected primary-expression before ‘<=’ token for (i=1;<=n;i++) ^ user.cpp:22:8: error: ‘ms’ was not declared in this scope while (ms<n-1) ^ user.cpp:24:17: error: request for member ‘x’ in ‘v[i]’, which is of non-class type ‘int’ while (a[v[i].x]==s[v[i].y]) ^ user.cpp:24:28: error: request for member ‘y’ in ‘v[i]’, which is of non-class type ‘int’ while (a[v[i].x]==s[v[i].y]) ^ user.cpp:26:16: error: request for member ‘x’ in ‘v[i]’, which is of non-class type ‘int’ fout<<v[i].x<<' '<<v[i].y<<endl; ^ user.cpp:26:29: error: request for member ‘y’ in ‘v[i]’, which is of non-class type ‘int’ fout<<v[i].x<<' '<<v[i].y<<endl; ^ user.cpp:28:5: error: ‘ct’ was not declared in this scope ct+=v[i].cost; ^ user.cpp:28:14: error: request for member ‘cost’ in ‘v[i]’, which is of non-class type ‘int’ ct+=v[i].cost; ^ user.cpp:29:16: error: request for member ‘x’ in ‘v[i]’, which is of non-class type ‘int’ if (s[v[i].x]<s[v[i].y]) ^ user.cpp:29:26: error: request for member ‘y’ in ‘v[i]’, which is of non-class type ‘int’ if (s[v[i].x]<s[v[i].y]) ^ user.cpp:31:16: error: request for member ‘x’ in ‘v[i]’, which is of non-class type ‘int’

Ceva nu functioneaza?