Borderou de evaluare (job #1397476)

Utilizator akaprosAna Kapros akapros Data 23 martie 2015 16:04:12
Problema Dreptunghiuri4 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:21: error: ‘int j1’ redeclared as different kind of symbol int n,m,i,j,k,i1,i2,j1,j2,sol,val; ^ In file included from /usr/include/features.h:357:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420, from /usr/include/c++/4.8/cstdio:41, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:240:1: error: previous declaration of ‘double j1(double)’ __MATHCALL (j1,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:15:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%d %d %d %d",&j1,&i1,&j2,&i2); ^ user.cpp:16:17: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive] i1++; j1++; i2++; j2++; ^ user.cpp:16:17: error: lvalue required as increment operand user.cpp:17:19: error: invalid types ‘int [1005][double(double)throw ()]’ for array subscript ++b[i1][j1]; ^ user.cpp:19:21: error: invalid types ‘int [1005][double(double)throw ()]’ for array subscript --b[i2+1][j1]; ^ user.cpp:10:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dreptunghiuri4.in","r",stdin); ^ user.cpp:11:45: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dreptunghiuri4.out","w",stdout); ^ user.cpp:12:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&n,&k); ^ user.cpp:15:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d",&j1,&i1,&j2,&i2); ^

Ceva nu functioneaza?