Borderou de evaluare (job #1222948)
Utilizator | Data | 24 august 2014 20:06:14 | |
---|---|---|---|
Problema | Padure | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:15:33: error: ‘short int y1 [1006009]’ redeclared as different kind of symbol
short x1[NMAX*NMAX],y1[NMAX*NMAX],N,M;
^
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:243:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘void fill(int, int, int)’:
user.cpp:32:17: warning: pointer to a function used in arithmetic [-Wpointer-arith]
x1[k] = i; y1[k] = j;
^
user.cpp:32:19: error: assignment of read-only location ‘*(y1 + ((sizetype)k))’
x1[k] = i; y1[k] = j;
^
user.cpp:32:19: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:40:13: warning: pointer to a function used in arithmetic [-Wpointer-arith]
DY = y1[i] + dy[t];
^
user.cpp:40:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
DY = y1[i] + dy[t];
^
user.cpp:40:15: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
DY = y1[i] + dy[t];
^
user.cpp:44:33: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(a[DX][DY] == a[x1[i]][y1[i]])
^
user.cpp:44:34: error: invalid types ‘short int [1003][double(double)throw ()]’ for array subscript
if(a[DX][DY] == a[x1[i]][y1[i]])
^
user.cpp:48:9: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[k] = DY;
^
user.cpp:48:11: error: assignment of read-only location ‘*(y1 + ((sizetype)k))’
y1[k] = DY;
^
user.cpp:48:11: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:29:14: warning: unused variable ‘kk’ [-Wunused-variable]
int t, k=1, kk;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !