Borderou de evaluare (job #1392896)
Utilizator | Data | 18 martie 2015 23:01:56 | |
---|---|---|---|
Problema | Banana | Status | done |
Runda | Teme Pregatire ACM Unibuc 2014, Anul I, Semestrul 2 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:58: error: ‘int y1 [16005]’ redeclared as different kind of symbol
int x[MAX],y[MAX],GR[MAX],IND[MAX],w1[MAX],x1[MAX],y1[MAX];
^
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 ‘int main()’:
user.cpp:47:30: warning: pointer to a function used in arithmetic [-Wpointer-arith]
{ x1[i]=x[IND[i]]; y1[i]=y[IND[i]]; }
^
user.cpp:47:31: error: assignment of read-only location ‘*(y1 + ((sizetype)i))’
{ x1[i]=x[IND[i]]; y1[i]=y[IND[i]]; }
^
user.cpp:47:31: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:51:36: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(x1[i1]==x1[i] && (y1[i]==y1[i1]+1 || y1[i]==y1[i1]-1))
^
user.cpp:51:44: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(x1[i1]==x1[i] && (y1[i]==y1[i1]+1 || y1[i]==y1[i1]-1))
^
user.cpp:51:46: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(x1[i1]==x1[i] && (y1[i]==y1[i1]+1 || y1[i]==y1[i1]-1))
^
user.cpp:51:55: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(x1[i1]==x1[i] && (y1[i]==y1[i1]+1 || y1[i]==y1[i1]-1))
^
user.cpp:51:63: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(x1[i1]==x1[i] && (y1[i]==y1[i1]+1 || y1[i]==y1[i1]-1))
^
user.cpp:51:65: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(x1[i1]==x1[i] && (y1[i]==y1[i1]+1 || y1[i]==y1[i1]-1))
^
user.cpp:53:37: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(x1[i]==x1[i1]-1 && y1[i]==y1[i1])
^
user.cpp:53:45: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(x1[i]==x1[i1]-1 && y1[i]==y1[i1])
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !