Borderou de evaluare (job #1995336)
Utilizator | Data | 27 iunie 2017 17:52:13 | |
---|---|---|---|
Problema | Camp | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:18:12: error: ‘double y1’ redeclared as different kind of symbol
double x1, y1, x, y, y2, xx, yy, xmin = Inf, xmax;
^
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:23:14: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
fin >> n >> x1 >> y1;
^
In file included from /usr/include/c++/4.8/fstream:38:0,
from user.cpp:1:
/usr/include/c++/4.8/istream:872:5: error: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = double(double)throw ()]’
operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
^
user.cpp:25:7: error: cannot convert ‘double(double)throw ()’ to ‘double’ in assignment
y = y1;
^
user.cpp:46:21: error: cannot convert ‘double(double)throw ()’ to ‘double’ in assignment
l[n].y2 = y1;
^
user.cpp:99:12: error: assignment of function ‘double y1(double)’
y1 = (l[l1].y2 * (l[l1].x1 - l[l1].x2) + (x - l[l1].x2) * (l[l1].y1 - l[l1].y2) ) / (l[l1].x1 - l[l1].x2);
^
user.cpp:99:12: error: cannot convert ‘double’ to ‘double(double)throw ()’ in assignment
user.cpp:101:14: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘long long int’ [-fpermissive]
ind1 = y1;
^
user.cpp:102:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (ind1 < y1)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !