Olimpiada
- [1] 2021-11-28 16:48 (93.5)
- [2] 2021-11-28 16:49 (96.8)
- [3] 2021-11-28 17:00 (96.8)
- [4] 2021-11-28 17:30 (96.8)
- [5] 2021-11-28 17:33 (96.8)
- [6] 2021-11-28 18:31 (48.4)
- [7] 2021-11-28 18:35 (96.8)
- [8] 2021-11-29 16:20 (67.7)
- [9] 2021-11-29 16:27 (96.8)
- [10] 2021-11-29 16:36 (96.8)
- [11] 2021-11-29 16:38 (96.8)
- [12] 2021-11-30 17:45 (96.8)
- [13] 2021-12-28 23:14 (22.6)
- [14] 2022-01-14 15:35 (22.6)
- [15] 2022-01-14 15:38 (93.5)
- [16] 2022-01-14 15:52 (0)
- [17] 2022-01-14 15:53 (93.5)
- [18] 2022-01-14 15:55 (93.5)
- [19] 2022-01-14 15:58 (96.8)
- [20] 2022-01-23 00:45 (96.8)
Taškai: 0
Compile: FAIL
olimpiada.cpp: In function ‘int main()’: olimpiada.cpp:25:24: error: no matching function for call to ‘max(int&, long long int&)’ maksim = max(maksim, b); ^ 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 olimpiada.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: olimpiada.cpp:25:24: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘long long int’) maksim = max(maksim, b); ^ 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 olimpiada.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: olimpiada.cpp:25:24: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘long long int’) maksim = max(maksim, b); ^ 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 olimpiada.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: olimpiada.cpp:25:24: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘int’ maksim = max(maksim, b); ^ 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 olimpiada.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: olimpiada.cpp:25:24: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘int’ maksim = max(maksim, b); ^
nr. | result | time | message |
---|