Borderou de evaluare (job #1865056)
| Utilizator | Data | 1 februarie 2017 11:49:02 | |
|---|---|---|---|
| Problema | Triang | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp:10:34: error: ‘const double sin’ redeclared as different kind of symbol
static const double EPS = 0.001, sin = 0.866025, cos = 0.50000;
^
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:66:1: error: previous declaration of ‘double sin(double)’
__MATHCALL (sin,, (_Mdouble_ __x));
^
user.cpp:10:50: error: ‘const double cos’ redeclared as different kind of symbol
static const double EPS = 0.001, sin = 0.866025, cos = 0.50000;
^
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:64:1: error: previous declaration of ‘double cos(double)’
__MATHCALL (cos,, (_Mdouble_ __x));
^
user.cpp: In function ‘int bin_search(std::pair<double, double>)’:
user.cpp:24:41: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if( mod( v[mid].x - p.x ) < EPS && v[mid].y < p.y || v[mid].x < p.x ){
^
user.cpp: In function ‘int main()’:
user.cpp:41:50: error: invalid operands of types ‘double’ and ‘<unresolved overloaded function type>’ to binary ‘operator*’
P.x = v[i].x + ( v[j].x - v[i].x ) * cos - ( v[j].y - v[i].y ) * sin;
^
user.cpp:41:78: error: invalid operands of types ‘double’ and ‘<unresolved overloaded function type>’ to binary ‘operator*’
P.x = v[i].x + ( v[j].x - v[i].x ) * cos - ( v[j].y - v[i].y ) * sin;
^
user.cpp:42:50: error: invalid operands of types ‘double’ and ‘<unresolved overloaded function type>’ to binary ‘operator*’
P.y = v[i].y + ( v[j].x - v[i].x ) * sin + ( v[j].y - v[i].y ) * cos;
^
user.cpp:42:78: error: invalid operands of types ‘double’ and ‘<unresolved overloaded function type>’ to binary ‘operator*’
P.y = v[i].y + ( v[j].x - v[i].x ) * sin + ( v[j].y - v[i].y ) * cos;
^
user.cpp:44:50: error: invalid operands of types ‘double’ and ‘<unresolved overloaded function type>’ to binary ‘operator*’
P.x = v[i].x + ( v[j].x - v[i].x ) * cos + ( v[j].y - v[i].y ) * sin;
^
user.cpp:44:78: error: invalid operands of types ‘double’ and ‘<unresolved overloaded function type>’ to binary ‘operator*’
P.x = v[i].x + ( v[j].x - v[i].x ) * cos + ( v[j].y - v[i].y ) * sin;
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
