Borderou de evaluare (job #2208579)

Utilizator EricEric Vilcu Eric Data 30 mai 2018 16:00:24
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:10:8: error: array bound is not an integer constant before ‘]’ token int a[i]; ^ user.cpp: In function ‘void gn(int)’: user.cpp:27:21: error: request for member ‘b’ in ‘a[i]’, which is of pointer type ‘muchie*’ (maybe you meant to use ‘->’ ?) if(Cda[a[i].b]>Cda[a[i].c]) ^ user.cpp:27:33: error: request for member ‘c’ in ‘a[i]’, which is of pointer type ‘muchie*’ (maybe you meant to use ‘->’ ?) if(Cda[a[i].b]>Cda[a[i].c]) ^ user.cpp:29:22: error: request for member ‘b’ in ‘a[i]’, which is of pointer type ‘muchie*’ (maybe you meant to use ‘->’ ?) Cda[a[i].b]=Cda[a[i].c]; ^ user.cpp:29:34: error: request for member ‘c’ in ‘a[i]’, which is of pointer type ‘muchie*’ (maybe you meant to use ‘->’ ?) Cda[a[i].b]=Cda[a[i].c]; ^ user.cpp:30:22: error: request for member ‘b’ in ‘a[i]’, which is of pointer type ‘muchie*’ (maybe you meant to use ‘->’ ?) Tna[a[i].b]=i; ^ user.cpp: In function ‘int main()’: user.cpp:49:26: error: ‘v’ was not declared in this scope for(int i=1;i<=n;++i)v[i]=INF; ^ user.cpp:49:31: error: ‘INF’ was not declared in this scope for(int i=1;i<=n;++i)v[i]=INF; ^~~ user.cpp:50:5: error: ‘v’ was not declared in this scope v[1]=0; ^

Ceva nu functioneaza?