Borderou de evaluare (job #1040857)

Utilizator adipufupufu adrian adipufu Data 25 noiembrie 2013 00:36:35
Problema Alee Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:5: error: redefinition of ‘int k’ int k=0,prim=0,ultim=-1; ^ user.cpp:7:37: error: ‘int k’ previously declared here int a[180][180],x1,x2,y1,y2,n,m,i,j,k,x,y; ^ user.cpp: In function ‘int lee(int, int, int, int)’: user.cpp:16:13: error: request for member ‘lin’ in ‘v’, which is of pointer type ‘nod*’ (maybe you meant to use ‘->’ ?) {v.lin=p.lin+dl[k];v.col=p.col+dc[k]; ^ user.cpp:16:19: error: request for member ‘lin’ in ‘p’, which is of pointer type ‘nod*’ (maybe you meant to use ‘->’ ?) {v.lin=p.lin+dl[k];v.col=p.col+dc[k]; ^ user.cpp:16:31: error: request for member ‘col’ in ‘v’, which is of pointer type ‘nod*’ (maybe you meant to use ‘->’ ?) {v.lin=p.lin+dl[k];v.col=p.col+dc[k]; ^ user.cpp:16:37: error: request for member ‘col’ in ‘p’, which is of pointer type ‘nod*’ (maybe you meant to use ‘->’ ?) {v.lin=p.lin+dl[k];v.col=p.col+dc[k]; ^ user.cpp:17:18: error: request for member ‘lin’ in ‘v’, which is of pointer type ‘nod*’ (maybe you meant to use ‘->’ ?) if(a[v.lin][v.col]==0) ^ user.cpp:17:25: error: request for member ‘col’ in ‘v’, which is of pointer type ‘nod*’ (maybe you meant to use ‘->’ ?) if(a[v.lin][v.col]==0) ^ user.cpp:18:19: error: request for member ‘lin’ in ‘v’, which is of pointer type ‘nod*’ (maybe you meant to use ‘->’ ?) {a[v.lin][v.col]=a[p.lin][p.col]+1; ^ user.cpp:18:26: error: request for member ‘col’ in ‘v’, which is of pointer type ‘nod*’ (maybe you meant to use ‘->’ ?) {a[v.lin][v.col]=a[p.lin][p.col]+1; ^ user.cpp:18:35: error: request for member ‘lin’ in ‘p’, which is of pointer type ‘nod*’ (maybe you meant to use ‘->’ ?) {a[v.lin][v.col]=a[p.lin][p.col]+1; ^ user.cpp:18:42: error: request for member ‘col’ in ‘p’, which is of pointer type ‘nod*’ (maybe you meant to use ‘->’ ?) {a[v.lin][v.col]=a[p.lin][p.col]+1; ^ user.cpp:26:13: error: request for member ‘lin’ in ‘pc’, which is of pointer type ‘nod*’ (maybe you meant to use ‘->’ ?) return a[pc.lin][pc.col]; ^ user.cpp:26:21: error: request for member ‘col’ in ‘pc’, which is of pointer type ‘nod*’ (maybe you meant to use ‘->’ ?) return a[pc.lin][pc.col]; ^ user.cpp: In function ‘int main()’: user.cpp:41:3: error: request for member ‘lin’ in ‘p’, which is of pointer type ‘nod*’ (maybe you meant to use ‘->’ ?) p.lin=0; ^ user.cpp:42:3: error: request for member ‘col’ in ‘p’, which is of pointer type ‘nod*’ (maybe you meant to use ‘->’ ?) p.col=0; ^

Ceva nu functioneaza?