Borderou de evaluare (job #1491919)
Utilizator | Data | 26 septembrie 2015 15:02:06 | |
---|---|---|---|
Problema | Arbsat | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:48:10: error: ‘int y0’ redeclared as different kind of symbol
int n,x0,y0,k1,k2,xdr[Nmax],xst[Nmax],yup[Nmax],yd[Nmax];
^
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/iosfwd:38,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:242:1: error: previous declaration of ‘double y0(double)’
__MATHCALL (y0,, (_Mdouble_));
^
user.cpp: In function ‘void Normalize()’:
user.cpp:55:34: error: invalid operands of types ‘Point [100005]’ and ‘double(double)throw ()’ to binary ‘operator+’
sort(x+1,x+x0+1); sort(y+1,y+y0+1);
^
user.cpp: In function ‘int main()’:
user.cpp:120:22: error: assignment of function ‘double y0(double)’
cin>>n; x0=y0=bad=0;
^
user.cpp:120:22: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:125:17: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
y[++y0].x=a[i].y; y[y0].y=i;
^
user.cpp:125:17: error: lvalue required as increment operand
user.cpp:125:35: error: invalid types ‘Point [100005][double(double)throw ()]’ for array subscript
y[++y0].x=a[i].y; y[y0].y=i;
^
user.cpp:141:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0;j<Lx[i].size();++j)
^
user.cpp:144:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(j<Lx[i].size()-1) yup[Lx[i][j].y]=Lx[i][j+1].x;
^
user.cpp:146:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0;j<Ly[i].size();++j)
^
user.cpp:149:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(j<Lx[i].size()-1) xdr[Ly[i][j].y]=Ly[i][j+1].x;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !