Borderou de evaluare (job #2068501)

Utilizator smatei16Matei Staicu smatei16 Data 17 noiembrie 2017 23:35:41
Problema Insule Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void lee()’: user.cpp:25:33: error: invalid types ‘int[int]’ for array subscript if(a[xx][yy] ==0 && c[xx][yy] ==0) ^ user.cpp:26:14: error: invalid types ‘int[int]’ for array subscript {c[xx][yy]=c[l][c]+1;q.push(make_pair(xx,yy));} ^ user.cpp:26:23: error: invalid types ‘int[int]’ for array subscript {c[xx][yy]=c[l][c]+1;q.push(make_pair(xx,yy));} ^ user.cpp:27:36: error: invalid types ‘int[int]’ for array subscript else if(a[xx][yy]==0 && c[l][c]+1<c[xx][yy]){c[xx][yy]=c[l][c]+1;q.push(make_pair(xx,yy));} ^ user.cpp:27:47: error: invalid types ‘int[int]’ for array subscript else if(a[xx][yy]==0 && c[l][c]+1<c[xx][yy]){c[xx][yy]=c[l][c]+1;q.push(make_pair(xx,yy));} ^ user.cpp:27:58: error: invalid types ‘int[int]’ for array subscript else if(a[xx][yy]==0 && c[l][c]+1<c[xx][yy]){c[xx][yy]=c[l][c]+1;q.push(make_pair(xx,yy));} ^ user.cpp:27:67: error: invalid types ‘int[int]’ for array subscript else if(a[xx][yy]==0 && c[l][c]+1<c[xx][yy]){c[xx][yy]=c[l][c]+1;q.push(make_pair(xx,yy));} ^ user.cpp: In function ‘int main()’: user.cpp:35:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d %d\n",&n,&m); ^ user.cpp:35:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:41:9: error: ‘i’ was not declared in this scope for(i=1;i<=n;i++)a[0][i]=a[i][0]=a[n+1][i]=a[i][n+1]=-1; ^ user.cpp:42:9: error: ‘i’ was not declared in this scope for(i=1;i<=n;i++) ^ user.cpp:43:9: error: ‘j’ was not declared in this scope for(j=1;j<=n;j++) ^ user.cpp:49:9: error: ‘i’ was not declared in this scope for(i=1;i<=n;i++) ^ user.cpp:50:13: error: ‘j’ was not declared in this scope for(j=1;j<=m;j++) ^ user.cpp:53:8: warning: overflow in implicit constant conversion [-Woverflow] Min=999999999; ^ user.cpp:54:9: error: ‘i’ was not declared in this scope for(i=1;i<=n;i++) ^ user.cpp:55:13: error: ‘j’ was not declared in this scope for(j=1;j<=m;j++)

Ceva nu functioneaza?