Borderou de evaluare (job #994177)

Utilizator Johny_Depp22Johnny Depp Johny_Depp22 Data 5 septembrie 2013 01:04:32
Problema Geometry Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:70: error: ‘int y1 [505]’ redeclared as different kind of symbol int n, sol, a1, b1, c1, a2, b2, c2, x1[505], x2[505], y2[505], y1[505]; ^ In file included from /usr/include/features.h:346:0, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420, from /usr/local/include/c++/4.8.0/iosfwd:38, from /usr/local/include/c++/4.8.0/ios:38, from /usr/local/include/c++/4.8.0/istream:38, from /usr/local/include/c++/4.8.0/fstream:38, from user.cpp:1: /usr/include/bits/mathcalls.h:242:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:13:30: warning: pointer to a function used in arithmetic [-Wpointer-arith] f>>x1[i]>>x2[i]>>y1[i]>>y2[i]; ^ user.cpp:13:17: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’ f>>x1[i]>>x2[i]>>y1[i]>>y2[i]; ^ In file included from /usr/local/include/c++/4.8.0/fstream:38:0, from user.cpp:1: /usr/local/include/c++/4.8.0/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:18:26: warning: pointer to a function used in arithmetic [-Wpointer-arith] a1=y2[i]-y1[i]; b1=x2[i]-x1[i]; ^ user.cpp:18:26: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’ user.cpp:19:27: warning: pointer to a function used in arithmetic [-Wpointer-arith] c1=x1[i]*(y1[i]-y2[i])-y1[i]*(x1[i]-x2[i]); ^ user.cpp:19:33: warning: pointer to a function used in arithmetic [-Wpointer-arith] c1=x1[i]*(y1[i]-y2[i])-y1[i]*(x1[i]-x2[i]); ^ user.cpp:19:34: error: invalid operands of types ‘int’ and ‘double (*)(double)throw ()’ to binary ‘operator*’ c1=x1[i]*(y1[i]-y2[i])-y1[i]*(x1[i]-x2[i]); ^ user.cpp:19:40: warning: pointer to a function used in arithmetic [-Wpointer-arith] c1=x1[i]*(y1[i]-y2[i])-y1[i]*(x1[i]-x2[i]); ^ user.cpp:19:54: error: invalid operands of types ‘double(double)throw ()’ and ‘int’ to binary ‘operator*’ c1=x1[i]*(y1[i]-y2[i])-y1[i]*(x1[i]-x2[i]); ^ user.cpp:21:26: warning: pointer to a function used in arithmetic [-Wpointer-arith] a2=y2[j]-y1[j]; b2=x2[j]-x1[j]; ^ user.cpp:21:26: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’ user.cpp:22:27: warning: pointer to a function used in arithmetic [-Wpointer-arith]

Ceva nu functioneaza?