Borderou de evaluare (job #1846555)

Utilizator Valentin0709Datcu George Valentin Valentin0709 Data 13 ianuarie 2017 12:50:31
Problema Insule Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:14:6: error: conflicting declaration ‘char c’ char c; ^ user.cpp:10:3: error: ‘c’ has a previous declaration as ‘poz c [1001]’ } c[1001]; ^ user.cpp: In function ‘void lee(int, int)’: user.cpp:17:5: error: ‘p’ was not declared in this scope p=1; u=1; c[1].x=x; c[1].y=y; ^ user.cpp:17:10: error: ‘u’ was not declared in this scope p=1; u=1; c[1].x=x; c[1].y=y; ^ user.cpp:20:31: error: expected primary-expression before ‘]’ token if(m[c[p].x+dx[i][]) ^ user.cpp:20:32: error: expected ‘]’ before ‘)’ token if(m[c[p].x+dx[i][]) ^ user.cpp:21:9: error: expected primary-expression before ‘}’ token } ^ user.cpp:21:9: error: expected ‘;’ before ‘}’ token user.cpp: In function ‘int main()’: user.cpp:46:29: warning: format ‘%c’ expects argument of type ‘char*’, but argument 3 has type ‘poz (*)[1001]’ [-Wformat=] fscanf(f,"%c",&c); ^ user.cpp:47:22: error: invalid conversion from ‘poz*’ to ‘int’ [-fpermissive] a[i][j]=c-'0'; ^ user.cpp:64:19: error: invalid types ‘int[int]’ for array subscript if(m[i][j]==-1) { ^ user.cpp:65:25: error: invalid types ‘int[int]’ for array subscript if(m[i-1][j]==0) lee(i-1,j); ^ user.cpp:66:25: error: invalid types ‘int[int]’ for array subscript if(m[i+1][j]==0) lee(i+1,j); ^ user.cpp:67:23: error: invalid types ‘int[int]’ for array subscript if(m[i][j-1]==0) lee(i,j-1); ^ user.cpp:68:23: error: invalid types ‘int[int]’ for array subscript if(m[i][j+1]==0) lee(i,j+1); ^ user.cpp:71:22: error: invalid conversion from ‘int’ to ‘FILE* {aka _IO_FILE*}’ [-fpermissive] fprintf(g,"%d",mn); ^ In file included from /usr/include/stdio.h:934:0, from user.cpp:1:

Ceva nu functioneaza?