Borderou de evaluare (job #2020330)

Utilizator cristina_borzaCristina Borza cristina_borza Data 9 septembrie 2017 21:26:44
Problema Demolish Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:20:19: error: ‘int y1’ redeclared as different kind of symbol int n, m, nr, x1, y1, x2, y2, ans = Inf, cost, posx, posy, dx, dy; ^ 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/utility:68, from /usr/include/c++/4.8/algorithm:60, 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:104:11: 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 >> cost; ^ In file included from /usr/include/c++/4.8/fstream:38:0, from user.cpp:2: /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:105:17: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive] ++x1, ++y1; ^ user.cpp:105:17: error: lvalue required as increment operand user.cpp:112:41: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] aux.tip = 0, aux.x = x1, aux.y1 = y1, aux.y2 = y2, aux.c = cost; ^ user.cpp:115:50: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] aux.tip = 1, aux.x = x1 + dy - 1, aux.y1 = y1, aux.y2 = y2, aux.c = cost; ^

Ceva nu functioneaza?