Borderou de evaluare (job #1761438)
Utilizator | Data | 22 septembrie 2016 11:07:40 | |
---|---|---|---|
Problema | Zota & Chidil | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:13: error: ‘zc y0 [1400001]’ redeclared as different kind of symbol
zc y0[NMax+1];
^
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 ‘int Search_xi_y0()’:
user.cpp:74:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if( y0[mid].y > y ) dr = mid-1;
^
user.cpp:74:21: error: request for member ‘y’ in ‘*(y0 + ((sizetype)mid))’, which is of non-class type ‘double(double)throw ()’
if( y0[mid].y > y ) dr = mid-1;
^
user.cpp:75:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
else if( y0[mid].y < y ) st = mid+1;
^
user.cpp:75:26: error: request for member ‘y’ in ‘*(y0 + ((sizetype)mid))’, which is of non-class type ‘double(double)throw ()’
else if( y0[mid].y < y ) st = mid+1;
^
user.cpp:78:23: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if( y0[mid].x < xi ) st = mid+1; else if( y0[mid].x > x ) dr = mid-1; else { f1 = mid; dr = mid-1; }
^
user.cpp:78:25: error: request for member ‘x’ in ‘*(y0 + ((sizetype)mid))’, which is of non-class type ‘double(double)throw ()’
if( y0[mid].x < xi ) st = mid+1; else if( y0[mid].x > x ) dr = mid-1; else { f1 = mid; dr = mid-1; }
^
user.cpp:78:61: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if( y0[mid].x < xi ) st = mid+1; else if( y0[mid].x > x ) dr = mid-1; else { f1 = mid; dr = mid-1; }
^
user.cpp:78:63: error: request for member ‘x’ in ‘*(y0 + ((sizetype)mid))’, which is of non-class type ‘double(double)throw ()’
if( y0[mid].x < xi ) st = mid+1; else if( y0[mid].x > x ) dr = mid-1; else { f1 = mid; dr = mid-1; }
^
user.cpp: In function ‘int Search_xf_y0()’:
user.cpp:89:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if( y0[mid].y > y ) dr = mid-1;
^
user.cpp:89:21: error: request for member ‘y’ in ‘*(y0 + ((sizetype)mid))’, which is of non-class type ‘double(double)throw ()’
if( y0[mid].y > y ) dr = mid-1;
^
user.cpp:90:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
else if( y0[mid].y < y ) st = mid+1;
^
user.cpp:90:26: error: request for member ‘y’ in ‘*(y0 + ((sizetype)mid))’, which is of non-class type ‘double(double)throw ()’
else if( y0[mid].y < y ) st = mid+1;
^
user.cpp:93:23: warning: pointer to a function used in arithmetic [-Wpointer-arith]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !