Borderou de evaluare (job #1438329)

Utilizator greenadexIulia Harasim greenadex Data 19 mai 2015 17:44:17
Problema Qtri Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:13:24: error: ‘int y1’ redeclared as different kind of symbol int q, x1, x2, x3, x4, y1, y2, y3, y4; ^ 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:19:13: 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 >> x3 >> y3 >> x4 >> y4; ^ 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:20:35: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] if (area(x1,x2,x3,y1,y2,y3) == area (x1, x2, x4, y1, y2, y4)+ ^ user.cpp:9:11: error: initializing argument 4 of ‘long long int area(int, int, int, int, int, int)’ [-fpermissive] long long area (int xA, int xB, int xC, int yA, int yB, int yC){ ^ user.cpp:20:68: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] if (area(x1,x2,x3,y1,y2,y3) == area (x1, x2, x4, y1, y2, y4)+ ^ user.cpp:9:11: error: initializing argument 4 of ‘long long int area(int, int, int, int, int, int)’ [-fpermissive] long long area (int xA, int xB, int xC, int yA, int yB, int yC){ ^ user.cpp:21:68: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] area (x1, x3, x4, y1, y3, y4)+ ^ user.cpp:9:11: error: initializing argument 4 of ‘long long int area(int, int, int, int, int, int)’ [-fpermissive] long long area (int xA, int xB, int xC, int yA, int yB, int yC){ ^

Ceva nu functioneaza?