Lenktynės
- [1] 2020-05-24 20:16 (90.9)
- [2] 2020-05-24 20:16 (90.9)
- [3] 2020-05-24 20:17 (86.4)
- [4] 2020-05-24 20:18 (90.9)
- [5] 2020-05-24 20:19 (0)
- [6] 2020-05-24 20:21 (90.9)
- [7] 2020-05-24 20:22 (100)
- [8] 2021-04-06 20:28 (0)
Taškai: 0
Compile: FAIL
lmio_2007_3e2_lenktynes_vyr.cpp: In function ‘int main()’: lmio_2007_3e2_lenktynes_vyr.cpp:38:49: error: no matching function for call to ‘max(long double, int&)’ long double laikas = max(bin(mx, 8e8, k), mx); ^ 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/istream:38, from /usr/include/c++/5/sstream:38, from /usr/include/c++/5/complex:45, from /usr/include/c++/5/ccomplex:38, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:52, from lmio_2007_3e2_lenktynes_vyr.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: lmio_2007_3e2_lenktynes_vyr.cpp:38:49: note: deduced conflicting types for parameter ‘const _Tp’ (‘long double’ and ‘int’) long double laikas = max(bin(mx, 8e8, k), mx); ^ 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/istream:38, from /usr/include/c++/5/sstream:38, from /usr/include/c++/5/complex:45, from /usr/include/c++/5/ccomplex:38, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:52, from lmio_2007_3e2_lenktynes_vyr.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: lmio_2007_3e2_lenktynes_vyr.cpp:38:49: note: deduced conflicting types for parameter ‘const _Tp’ (‘long double’ and ‘int’) long double laikas = max(bin(mx, 8e8, k), mx); ^ In file included from /usr/include/c++/5/algorithm:62:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:64, from lmio_2007_3e2_lenktynes_vyr.cpp:1: /usr/include/c++/5/bits/stl_algo.h:3457:5: note: candidate: template<class _Tp> _Tp std::max(std::initializer_list<_Tp>) max(initializer_list<_Tp> __l) ^ /usr/include/c++/5/bits/stl_algo.h:3457:5: note: template argument deduction/substitution failed: lmio_2007_3e2_lenktynes_vyr.cpp:38:49: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘long double’ long double laikas = max(bin(mx, 8e8, k), mx); ^ In file included from /usr/include/c++/5/algorithm:62:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:64, from lmio_2007_3e2_lenktynes_vyr.cpp:1: /usr/include/c++/5/bits/stl_algo.h:3463:5: note: candidate: template<class _Tp, class _Compare> _Tp std::max(std::initializer_list<_Tp>, _Compare) max(initializer_list<_Tp> __l, _Compare __comp) ^ /usr/include/c++/5/bits/stl_algo.h:3463:5: note: template argument deduction/substitution failed: lmio_2007_3e2_lenktynes_vyr.cpp:38:49: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘long double’ long double laikas = max(bin(mx, 8e8, k), mx); ^
nr. | result | time | message |
---|