Borderou de evaluare (job #1432794)

Utilizator mihail.jianuJianu Mihail mihail.jianu Data 9 mai 2015 14:17:43
Problema Fence Status done
Runda shiggydiggy123 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:11:15: error: ‘int y1’ redeclared as different kind of symbol int n,m,x1,x2,y1,y2,v; ^ 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 ‘long long int solve1()’: user.cpp:14:28: error: no matching function for call to ‘max(double (&)(double)throw (), int&)’ for(int i=1;i<max(y1,y2);i++) ^ user.cpp:14:28: 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:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&) max(const _Tp& __a, const _Tp& __b) ^ /usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template argument deduction/substitution failed: user.cpp:14:28: note: deduced conflicting types for parameter ‘const _Tp’ (‘double(double)throw ()’ and ‘int’) for(int i=1;i<max(y1,y2);i++) ^ 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:260:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare) max(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ /usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template argument deduction/substitution failed: user.cpp:14:28: note: deduced conflicting types for parameter ‘const _Tp’ (‘double(double)throw ()’ and ‘int’) for(int i=1;i<max(y1,y2);i++) ^ 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:4254:5: note: template<class _Tp> _Tp std::max(std::initializer_list<_Tp>) max(initializer_list<_Tp> __l) ^ /usr/include/c++/4.8/bits/stl_algo.h:4254:5: note: template argument deduction/substitution failed: user.cpp:14:28: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘double (*)(double)throw ()’ for(int i=1;i<max(y1,y2);i++) ^ 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:4259:5: note: template<class _Tp, class _Compare> _Tp std::max(std::initializer_list<_Tp>, _Compare) max(initializer_list<_Tp> __l, _Compare __comp) ^ /usr/include/c++/4.8/bits/stl_algo.h:4259:5: note: template argument deduction/substitution failed: user.cpp:14:28: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘double (*)(double)throw ()’

Ceva nu functioneaza?