Kvadratinė lygtis
- [1] 2018-12-03 17:59 (0)
- [2] 2018-12-03 17:59 (60)
- [3] 2018-12-03 18:11 (93.3)
- [4] 2018-12-07 16:27 (0)
- [5] 2018-12-08 11:57 (100)
Taškai: 0
Compile: FAIL
kvad_lygtis.cpp: In function ‘int main()’: kvad_lygtis.cpp:19:26: error: no matching function for call to ‘round(float&, int)’ cout <<round(x1,6) <<round(x2,6) << endl; ^ In file included from /usr/include/features.h:367:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39, from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:482, from /usr/include/c++/5/iostream:38, from kvad_lygtis.cpp:1: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:319:1: note: candidate: double round(double) __MATHCALLX (round,, (_Mdouble_ __x), (__const__)); ^ /usr/include/x86_64-linux-gnu/bits/mathcalls.h:319:1: note: candidate expects 1 argument, 2 provided In file included from kvad_lygtis.cpp:2:0: /usr/include/c++/5/cmath:1709:5: note: candidate: template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::round(_Tp) round(_Tp __x) ^ /usr/include/c++/5/cmath:1709:5: note: template argument deduction/substitution failed: kvad_lygtis.cpp:19:26: note: candidate expects 1 argument, 2 provided cout <<round(x1,6) <<round(x2,6) << endl; ^ In file included from kvad_lygtis.cpp:2:0: /usr/include/c++/5/cmath:1702:3: note: candidate: constexpr long double std::round(long double) round(long double __x) ^ /usr/include/c++/5/cmath:1702:3: note: candidate expects 1 argument, 2 provided /usr/include/c++/5/cmath:1698:3: note: candidate: constexpr float std::round(float) round(float __x) ^ /usr/include/c++/5/cmath:1698:3: note: candidate expects 1 argument, 2 provided kvad_lygtis.cpp:19:40: error: no matching function for call to ‘round(float&, int)’ cout <<round(x1,6) <<round(x2,6) << endl; ^ In file included from /usr/include/features.h:367:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39, from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:482, from /usr/include/c++/5/iostream:38, from kvad_lygtis.cpp:1: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:319:1: note: candidate: double round(double) __MATHCALLX (round,, (_Mdouble_ __x), (__const__)); ^ /usr/include/x86_64-linux-gnu/bits/mathcalls.h:319:1: note: candidate expects 1 argument, 2 provided In file included from kvad_lygtis.cpp:2:0: /usr/include/c++/5/cmath:1709:5: note: candidate: template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::round(_Tp) round(_Tp __x) ^ /usr/include/c++/5/cmath:1709:5: note: template argument deduction/substitution failed: kvad_lygtis.cpp:19:40: note: candidate expects 1 argument, 2 provided cout <<round(x1,6) <<round(x2,6) << endl; ^ In file included from kvad_lygtis.cpp:2:0: /usr/include/c++/5/cmath:1702:3: note: candidate: constexpr long double std::round(long double) round(long double __x) ^ /usr/include/c++/5/cmath:1702:3: note: candidate expects 1 argument, 2 provided /usr/include/c++/5/cmath:1698:3: note: candidate: constexpr float std::round(float) round(float __x) ^ /usr/include/c++/5/cmath:1698:3: note: candidate expects 1 argument, 2 provided kvad_lygtis.cpp:24:31: error: no matching function for call to ‘round(float&, int)’ cout << round(x1,6) << endl; ^ In file included from /usr/include/features.h:367:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39, from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:482, from /usr/include/c++/5/iostream:38, from kvad_lygtis.cpp:1: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:319:1: note: candidate: double round(double) __MATHCALLX (round,, (_Mdouble_ __x), (__const__)); ^ /usr/include/x86_64-linux-gnu/bits/mathcalls.h:319:1: note: candidate expects 1 argument, 2 provided In file included from kvad_lygtis.cpp:2:0: /usr/include/c++/5/cmath:1709:5: note: candidate: template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::round(_Tp) round(_Tp __x) ^ /usr/include/c++/5/cmath:1709:5: note: template argument deduction/substitution failed: kvad_lygtis.cpp:24:31: note: candidate expects 1 argument, 2 provided cout << round(x1,6) << endl; ^ In file included from kvad_lygtis.cpp:2:0: /usr/include/c++/5/cmath:1702:3: note: candidate: constexpr long double std::round(long double) round(long double __x) ^ /usr/include/c++/5/cmath:1702:3: note: candidate expects 1 argument, 2 provided /usr/include/c++/5/cmath:1698:3: note: candidate: constexpr float std::round(float) round(float __x) ^ /usr/include/c++/5/cmath:1698:3: note: candidate expects 1 argument, 2 provided
nr. | result | time | message |
---|