Borderou de evaluare (job #1864192)
Utilizator | Data | 31 ianuarie 2017 16:35:48 | |
---|---|---|---|
Problema | Triang | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:8: error: ‘double sin’ redeclared as different kind of symbol
double sin, cos;
^
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:13: error: ‘double cos’ redeclared as different kind of symbol
double sin, cos;
^
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 main()’:
user.cpp:36:9: error: overloaded function with no contextual type information
cos = 0.5;
^
user.cpp:37:9: error: overloaded function with no contextual type information
sin = 0.866025;
^
user.cpp:45:50: error: invalid operands of types ‘double’ and ‘<unresolved overloaded function type>’ to binary ‘operator*’
pct.x = v[i].x + (v[j].x - v[i].x) * cos - (v[j].y - v[i].y) * sin;
^
user.cpp:45:76: error: invalid operands of types ‘double’ and ‘<unresolved overloaded function type>’ to binary ‘operator*’
pct.x = v[i].x + (v[j].x - v[i].x) * cos - (v[j].y - v[i].y) * sin;
^
user.cpp:46:50: error: invalid operands of types ‘double’ and ‘<unresolved overloaded function type>’ to binary ‘operator*’
pct.y = v[i].y + (v[j].x - v[i].x) * sin + (v[j].y - v[i].y) * cos;
^
user.cpp:46:76: error: invalid operands of types ‘double’ and ‘<unresolved overloaded function type>’ to binary ‘operator*’
pct.y = v[i].y + (v[j].x - v[i].x) * sin + (v[j].y - v[i].y) * cos;
^
user.cpp:50:50: error: invalid operands of types ‘double’ and ‘<unresolved overloaded function type>’ to binary ‘operator*’
pct.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 !