Borderou de evaluare (job #1005546)

Utilizator andreiiiiPopa Andrei andreiiii Data 5 octombrie 2013 11:30:41
Problema Photoshop Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:37:13: error: ‘int y1’ redeclared as different kind of symbol int x1, x2, y1, y2; ^ 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/cstdio:41, 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 ‘void query(int, int, int)’: user.cpp:68:16: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] aux.x=1;aux.y=y1; ^ user.cpp: In function ‘int main()’: user.cpp:130:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%d%d%d%d", &x1, &y1, &x2, &y2); ^ user.cpp:132:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(y2<y1) swap(y1, y2); ^ user.cpp:132:25: error: no matching function for call to ‘swap(double (&)(double)throw (), int&)’ if(y2<y1) swap(y1, y2); ^ user.cpp:132:25: note: candidates are: In file included from /usr/local/include/c++/4.8.0/bits/stl_pair.h:59:0, from /usr/local/include/c++/4.8.0/utility:70, from /usr/local/include/c++/4.8.0/algorithm:60, from user.cpp:2: /usr/local/include/c++/4.8.0/bits/move.h:166:5: note: template<class _Tp> void std::swap(_Tp&, _Tp&) swap(_Tp& __a, _Tp& __b) ^ /usr/local/include/c++/4.8.0/bits/move.h:166:5: note: template argument deduction/substitution failed: user.cpp:132:25: note: deduced conflicting types for parameter ‘_Tp’ (‘double(double)throw ()’ and ‘int’) if(y2<y1) swap(y1, y2); ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_pair.h:59:0, from /usr/local/include/c++/4.8.0/utility:70, from /usr/local/include/c++/4.8.0/algorithm:60, from user.cpp:2: /usr/local/include/c++/4.8.0/bits/move.h:185:5: note: template<class _Tp, unsigned int _Nm> void std::swap(_Tp (&)[_Nm], _Tp (&)[_Nm]) swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) ^ /usr/local/include/c++/4.8.0/bits/move.h:185:5: note: template argument deduction/substitution failed: user.cpp:132:25: note: mismatched types ‘_Tp [_Nm]’ and ‘double(double)throw ()’ if(y2<y1) swap(y1, y2); ^ In file included from /usr/local/include/c++/4.8.0/utility:70:0, from /usr/local/include/c++/4.8.0/algorithm:60,

Ceva nu functioneaza?