Bankomatas
- [1] 2017-12-16 12:41 (40)
- [2] 2017-12-16 12:59 (44)
- [3] 2017-12-16 13:36 (20)
- [4] 2017-12-16 13:37 (24)
- [5] 2017-12-16 14:04 (0)
- [6] 2017-12-16 14:05 (36)
- [7] 2017-12-16 14:17 (36)
- [8] 2017-12-16 14:42 (0)
- [9] 2017-12-16 14:43 (0)
- [10] 2017-12-16 14:44 (36)
- [11] 2017-12-16 14:51 (0)
- [12] 2017-12-16 14:52 (0)
- [13] 2017-12-16 14:53 (0)
- [14] 2017-12-19 11:17 (92)
- [15] 2017-12-19 11:18 (68)
- [16] 2017-12-19 11:19 (100)
Taškai: 0
Compile: FAIL
bankomatas.cpp: In function ‘int main()’: bankomatas.cpp:17:31: error: no matching function for call to ‘max(int&, __gnu_cxx::__enable_if<true, double>::__type)’ X=max(X, sqrt((Y*Y)/2)); ^ In file included from /usr/include/c++/5/bits/char_traits.h:39:0, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from bankomatas.cpp:1: /usr/include/c++/5/bits/stl_algobase.h:219:5: note: candidate: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&) max(const _Tp& __a, const _Tp& __b) ^ /usr/include/c++/5/bits/stl_algobase.h:219:5: note: template argument deduction/substitution failed: bankomatas.cpp:17:31: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘__gnu_cxx::__enable_if<true, double>::__type {aka double}’) X=max(X, sqrt((Y*Y)/2)); ^ In file included from /usr/include/c++/5/bits/char_traits.h:39:0, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from bankomatas.cpp:1: /usr/include/c++/5/bits/stl_algobase.h:265:5: note: candidate: 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++/5/bits/stl_algobase.h:265:5: note: template argument deduction/substitution failed: bankomatas.cpp:17:31: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘__gnu_cxx::__enable_if<true, double>::__type {aka double}’) X=max(X, sqrt((Y*Y)/2)); ^
nr. | result | time | message |
---|