Borderou de evaluare (job #1714396)
Utilizator | Data | 8 iunie 2016 00:55:03 | |
---|---|---|---|
Problema | Castori | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:68: error: ‘int y0 [10010]’ redeclared as different kind of symbol
int x[2*MAXN],y[2*MAXN],type[2*MAXN],which[2*MAXN],x0[MAXN],y0[MAXN],v[MAXN];
^
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/cstdio:41,
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 ‘bool compare(int, int)’:
user.cpp:11:16: warning: pointer to a function used in arithmetic [-Wpointer-arith]
return y0[a]<y0[b];
^
user.cpp:11:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
return y0[a]<y0[b];
^
user.cpp: In function ‘int BinarySearch(int)’:
user.cpp:20:27: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(y>=y0[v[middle]]){
^
user.cpp:20:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
user.cpp: In function ‘bool Check(int)’:
user.cpp:56:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y[current]=y0[i];
^
user.cpp:56:24: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
user.cpp:61:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y[current]=y0[i];
^
user.cpp:61:24: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
user.cpp: In function ‘int main()’:
user.cpp:91:13: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y0[i]=x+y;
^
user.cpp:91:14: error: assignment of read-only location ‘*(y0 + ((sizetype)i))’
y0[i]=x+y;
^
user.cpp:91:14: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:84:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("castori.in","r",stdin);
^
user.cpp:85:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("castori.out","w",stdout);
^
user.cpp:87:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&k);
^
user.cpp:89:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !