Borderou de evaluare (job #985595)

Utilizator harababurelPuscas Sergiu harababurel Data 17 august 2013 12:38:58
Problema Rectangles Status done
Runda Concursul Mihai Patrascu 2013 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:10:12: error: ‘int y1’ redeclared as different kind of symbol int n, x1, y1, x2, y2, newx, newy, surface, sum, sol = 0, xmax = 0; ^ 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/iostream: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:19: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; ^ In file included from /usr/local/include/c++/4.8.0/iostream:40: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:24:17: error: invalid types ‘int [2005][double(double)throw ()]’ for array subscript b[x1][y1]++; ^ user.cpp:26:19: error: invalid types ‘int [2005][double(double)throw ()]’ for array subscript b[x2+1][y1]--; ^

Ceva nu functioneaza?