Borderou de evaluare (job #1871987)
Utilizator | Data | 7 februarie 2017 20:36:59 | |
---|---|---|---|
Problema | Colaj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:22:37: error: ‘int y0’ redeclared as different kind of symbol
int n,l,x,px[nmax],py[nmax],nr,x0=1,y0=1,n1,m1,rez,pozpx[nmax],pozpy[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 ‘int main()’:
user.cpp:75:33: error: ISO C++ forbids decrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
if(!v[i].c || !v[i].d)y0--;
^
user.cpp:75:33: error: lvalue required as decrement operand
user.cpp:99:27: warning: pointer to a function used in arithmetic [-Wpointer-arith]
m[k+x0][j+y0]=1;
^
user.cpp:99:29: error: invalid types ‘bool [210][double (*)(double)throw ()]’ for array subscript
m[k+x0][j+y0]=1;
^
user.cpp:101:13: warning: pointer to a function used in arithmetic [-Wpointer-arith]
n1=y0+2*n-1;
^
user.cpp:101:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
n1=y0+2*n-1;
^
user.cpp:101:14: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
n1=y0+2*n-1;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !