Borderou de evaluare (job #1209251)

Utilizator PopescuMihai95Popescu Mihai PopescuMihai95 Data 17 iulie 2014 13:35:19
Problema Reuniune Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:4:27: error: ‘int y1’ redeclared as different kind of symbol int n,i,j,p,q,nr,x1,x2,x3,y1,y2,y3,X,Y,Z,T; ^ 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/cstdio:41, 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:11:54: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%d %d %d %d %d %d",&x1,&y1,&x2,&y2,&x3,&y3); ^ user.cpp:13:46: error: no matching function for call to ‘min(double (&)(double)throw (), const int&)’ X=min(x1,min(x2,x3)); Y=min(y1,min(y2,y3)); Z=max(x1,max(x2,x3)); T=max(y1,max(y2,y3)); ^ user.cpp:13:46: note: candidates are: In file included from /usr/include/c++/4.8/algorithm:61:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&) min(const _Tp& __a, const _Tp& __b) ^ /usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: template argument deduction/substitution failed: user.cpp:13:46: note: deduced conflicting types for parameter ‘const _Tp’ (‘double(double)throw ()’ and ‘int’) X=min(x1,min(x2,x3)); Y=min(y1,min(y2,y3)); Z=max(x1,max(x2,x3)); T=max(y1,max(y2,y3)); ^ In file included from /usr/include/c++/4.8/algorithm:61:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_algobase.h:239:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare) min(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ /usr/include/c++/4.8/bits/stl_algobase.h:239:5: note: template argument deduction/substitution failed: user.cpp:13:46: note: deduced conflicting types for parameter ‘const _Tp’ (‘double(double)throw ()’ and ‘int’) X=min(x1,min(x2,x3)); Y=min(y1,min(y2,y3)); Z=max(x1,max(x2,x3)); T=max(y1,max(y2,y3)); ^ In file included from /usr/include/c++/4.8/algorithm:62:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:4244:5: note: template<class _Tp> _Tp std::min(std::initializer_list<_Tp>) min(initializer_list<_Tp> __l) ^ /usr/include/c++/4.8/bits/stl_algo.h:4244:5: note: template argument deduction/substitution failed: user.cpp:13:46: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘double (*)(double)throw ()’ X=min(x1,min(x2,x3)); Y=min(y1,min(y2,y3)); Z=max(x1,max(x2,x3)); T=max(y1,max(y2,y3)); ^ In file included from /usr/include/c++/4.8/algorithm:62:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:4249:5: note: template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare) min(initializer_list<_Tp> __l, _Compare __comp)

Ceva nu functioneaza?