Borderou de evaluare (job #2038519)
Utilizator | Data | 13 octombrie 2017 19:13:17 | |
---|---|---|---|
Problema | Qtri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:23: error: ‘long long int y1’ redeclared as different kind of symbol
long long x1,x2,x3,x4,y1,y2,y3,y4;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/assert.h:37,
from /usr/include/c++/4.8/cassert:43,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:33,
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 ‘bool arie()’:
user.cpp:9:36: error: invalid operands of types ‘long long int’ and ‘double(double)throw ()’ to binary ‘operator-’
long long a1=x1*(y2-y3)+x2*(y3-y1)+x3*(y1-y2); // ABC
^
user.cpp:9:47: warning: pointer to a function used in arithmetic [-Wpointer-arith]
long long a1=x1*(y2-y3)+x2*(y3-y1)+x3*(y1-y2); // ABC
^
user.cpp:9:49: error: invalid operands of types ‘long long int’ and ‘double (*)(double)throw ()’ to binary ‘operator*’
long long a1=x1*(y2-y3)+x2*(y3-y1)+x3*(y1-y2); // ABC
^
user.cpp:10:36: error: invalid operands of types ‘long long int’ and ‘double(double)throw ()’ to binary ‘operator-’
long long a2=x1*(y2-y4)+x2*(y4-y1)+x4*(y1-y2); // ABD
^
user.cpp:10:47: warning: pointer to a function used in arithmetic [-Wpointer-arith]
long long a2=x1*(y2-y4)+x2*(y4-y1)+x4*(y1-y2); // ABD
^
user.cpp:10:49: error: invalid operands of types ‘long long int’ and ‘double (*)(double)throw ()’ to binary ‘operator*’
long long a2=x1*(y2-y4)+x2*(y4-y1)+x4*(y1-y2); // ABD
^
user.cpp:11:36: error: invalid operands of types ‘long long int’ and ‘double(double)throw ()’ to binary ‘operator-’
long long a3=x1*(y2-y4)+x3*(y4-y1)+x4*(y1-y3); // ACD
^
user.cpp:11:47: warning: pointer to a function used in arithmetic [-Wpointer-arith]
long long a3=x1*(y2-y4)+x3*(y4-y1)+x4*(y1-y3); // ACD
^
user.cpp:11:49: error: invalid operands of types ‘long long int’ and ‘double (*)(double)throw ()’ to binary ‘operator*’
long long a3=x1*(y2-y4)+x3*(y4-y1)+x4*(y1-y3); // ACD
^
user.cpp: In function ‘int main()’:
user.cpp:26:10: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
f>>x1>>y1>>x2>>y2>>x3>>y3>>x4>>y4;
^
In file included from /usr/include/c++/4.8/sstream:38:0,
from /usr/include/c++/4.8/complex:45,
from /usr/include/c++/4.8/ccomplex:38,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:52,
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)
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !