Borderou de evaluare (job #1602459)

Utilizator basca11Lapustea Anca basca11 Data 16 februarie 2016 19:47:57
Problema Cuvinte2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:58: error: ‘int j1’ redeclared as different kind of symbol int v[2][1005], n, d, p, rez[1005], rez2[1005], s, j, i, j1, j2, nr; ^ 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:12:28: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] fscanf(f,"%ld %ld",&n,&d); ^ user.cpp:12:28: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘int*’ [-Wformat=] user.cpp:31:23: error: assignment of function ‘double j1(double)’ for(j1=0;j1<d;j1++) ^ user.cpp:31:23: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:31:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] for(j1=0;j1<d;j1++) ^ user.cpp:31:33: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive] for(j1=0;j1<d;j1++) ^ user.cpp:31:33: error: lvalue required as increment operand user.cpp:33:27: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’ j2=(d-j1+j)%d; ^ user.cpp:34:37: error: invalid types ‘int [1005][double(double)throw ()]’ for array subscript s+=v[(p+1)%2][j1]*v[(p+1)%2][j2]; ^ user.cpp:44:19: error: assignment of function ‘double j1(double)’ for(j1=0;j1<d;j1++) ^ user.cpp:44:19: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:44:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] for(j1=0;j1<d;j1++) ^ user.cpp:44:29: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive] for(j1=0;j1<d;j1++) ^ user.cpp:44:29: error: lvalue required as increment operand user.cpp:46:23: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’ j2=(d-j1+j)%d; ^ user.cpp:47:33: error: invalid types ‘int [1005][double(double)throw ()]’ for array subscript s+=v[(p+1)%2][j1]*v[(p+1)%2][j2]; ^

Ceva nu functioneaza?