Borderou de evaluare (job #1120589)
Utilizator | Data | 25 februarie 2014 08:43:59 | |
---|---|---|---|
Problema | Joc13 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:9: error: ‘int j1’ redeclared as different kind of symbol
int i,j,j1,i1,k,v[2][mx],p[2][mx],n,maximi,mini,sum;
^
In file included from /usr/include/features.h:346:0,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420,
from /usr/local/include/c++/4.8.0/cstdio:41,
from user.cpp:1:
/usr/include/bits/mathcalls.h:239:1: error: previous declaration of ‘double j1(double)’
__MATHCALL (j1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:20:11: error: assignment of function ‘double j1(double)’
for(j1=1;j1<k &&j1<=i;j1++)
^
user.cpp:20:11: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:20:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(j1=1;j1<k &&j1<=i;j1++)
^
user.cpp:20:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(j1=1;j1<k &&j1<=i;j1++)
^
user.cpp:20:29: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
for(j1=1;j1<k &&j1<=i;j1++)
^
user.cpp:20:29: error: lvalue required as increment operand
user.cpp:21:18: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’
{sum+=v[j][i-j1];
^
user.cpp:22:21: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’
if(sum+p[1-j][i-j1]>maximi)
^
user.cpp:23:25: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’
maximi=sum+p[1-j][i-j1];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !