Borderou de evaluare (job #975026)
Utilizator | Data | 18 iulie 2013 21:23:43 | |
---|---|---|---|
Problema | Colaj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:17:13: error: ‘int y0’ redeclared as different kind of symbol
int x0 = 1 ,y0 = 1 ;
^
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/iosfwd:38,
from /usr/local/include/c++/4.8.0/ios:38,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/include/bits/mathcalls.h:241:1: error: previous declaration of ‘double y0(double)’
__MATHCALL (y0,, (_Mdouble_));
^
user.cpp: In function ‘void Read()’:
user.cpp:51:7: error: ISO C++ forbids decrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
--y0;
^
user.cpp:51:7: error: lvalue required as decrement operand
user.cpp: In function ‘void Put(int)’:
user.cpp:93:8: warning: pointer to a function used in arithmetic [-Wpointer-arith]
A[j+y0][k+x0] = true ;
^
user.cpp:93:10: error: invalid types ‘int [205][205][double (*)(double)throw ()]’ for array subscript
A[j+y0][k+x0] = true ;
^
user.cpp: In function ‘void BordMatrix()’:
user.cpp:110:23: warning: pointer to a function used in arithmetic [-Wpointer-arith]
nrline = 2 * N -1 + y0;
^
user.cpp:110:23: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:110:21: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
nrline = 2 * N -1 + y0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !