Borderou de evaluare (job #1681274)
Utilizator | Zaharia Stefan Tudor stefzah | Data | 9 aprilie 2016 12:48:57 |
---|---|---|---|
Problema | NN | Status | done |
Runda | Grigore Moisil 2016 Clasa a 10-a | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:39: error: ‘long double y1’ redeclared as different kind of symbol
long double a[100005],r1,r2,x,y,x1,x2,y1,y2;
^
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:26:9: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
{fin>>x1>>y1>>x2>>y2;
^
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:27:13: warning: the address of ‘double y1(double)’ will never be NULL [-Waddress]
if(y1==0)r1=100005;
^
user.cpp:28:17: error: invalid operands of types ‘long double’ and ‘double(double)throw ()’ to binary ‘operator/’
else r1=x1/y1;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !