Borderou de evaluare (job #369529)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Albine | Compilator | cpp |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 23 mar. 2018 11:09:17 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:12:35: error: ‘long long int y1’ redeclared as different kind of symbol
/usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’
user.cpp: In function ‘int main()’:
user.cpp:18:11: error: assignment of function ‘double y1(double)’
user.cpp:18:11: error: cannot convert ‘long long int’ to ‘double(double)throw ()’ in assignment
user.cpp:24:13: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:24:13: error: assignment of function ‘double y1(double)’
user.cpp:24:13: error: cannot convert ‘double (*)(double)throw ()’ to ‘double(double)throw ()’ in assignment
user.cpp:28:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
user.cpp:33:17: error: no matching function for call to ‘min(long long int&, double (&)(double)throw ())’
user.cpp:33:17: note: candidates are:
/usr/include/c++/4.6/bits/stl_algobase.h:187:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
/usr/include/c++/4.6/bits/stl_algobase.h:233:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
/usr/include/c++/4.6/bits/stl_algo.h:4184:5: note: template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)
/usr/include/c++/4.6/bits/stl_algo.h:4189:5: note: template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)