Borderou de evaluare (job #991656)
Utilizator | Data | 31 august 2013 09:25:22 | |
---|---|---|---|
Problema | Kinetic | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:20:62: error: ‘int j1’ redeclared as different kind of symbol
int a[501],b[501],n,m,t,i,x,y,j,l,k,s,r,o,p,z[501],e[200000],j1,l1,n1,n2,g,wi[501];
^
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:72:19: error: assignment of function ‘double j1(double)’
for(s=t,j1=0;s;s>>=1)
^
user.cpp:72:19: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:73:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(j1+s<=n&&d[i].z*w[j1+s].y+w[j1+s].x<=d[i].y)
^
user.cpp:73:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(j1+s<=n&&d[i].z*w[j1+s].y+w[j1+s].x<=d[i].y)
^
user.cpp:73:33: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(j1+s<=n&&d[i].z*w[j1+s].y+w[j1+s].x<=d[i].y)
^
user.cpp:73:34: error: invalid types ‘R [501][double (*)(double)throw ()]’ for array subscript
if(j1+s<=n&&d[i].z*w[j1+s].y+w[j1+s].x<=d[i].y)
^
user.cpp:73:43: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(j1+s<=n&&d[i].z*w[j1+s].y+w[j1+s].x<=d[i].y)
^
user.cpp:73:44: error: invalid types ‘R [501][double (*)(double)throw ()]’ for array subscript
if(j1+s<=n&&d[i].z*w[j1+s].y+w[j1+s].x<=d[i].y)
^
user.cpp:74:16: warning: pointer to a function used in arithmetic [-Wpointer-arith]
j1+=s;
^
user.cpp:74:16: error: assignment of function ‘double j1(double)’
user.cpp:74:16: error: cannot convert ‘double (*)(double)throw ()’ to ‘double(double)throw ()’ in assignment
user.cpp:78:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
e[d[i].t]=j1-l1,p=l;
^
user.cpp:78:21: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
e[d[i].t]=j1-l1,p=l;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !