Olimpiada
- [1] 2026-02-01 12:46 (0)
- [2] 2026-02-01 12:47 (45.2)
- [3] 2026-03-08 19:07 (45.2)
- [4] 2026-03-08 19:07 (12.9)
- [5] 2026-03-08 19:44 (0)
- [6] 2026-03-08 19:44 (0)
- [7] 2026-03-08 19:45 (0)
- [8] 2026-03-08 19:48 (87.1)
- [9] 2026-03-08 19:50 (48.4)
- [10] 2026-03-08 19:50 (87.1)
- [11] 2026-03-08 19:55 (87.1)
Taškai: 0
Compile: FAIL
olimpiada.cpp: In function ‘int main()’: olimpiada.cpp:21:15: error: no matching function for call to ‘max(unsigned int&, std::vector<int>::size_type)’ 21 | daug = max(daug, v.size()); | ~~~^~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from olimpiada.cpp:1: /usr/include/c++/11/bits/stl_algobase.h:254:5: note: candidate: ‘template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)’ 254 | max(const _Tp& __a, const _Tp& __b) | ^~~ /usr/include/c++/11/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed: olimpiada.cpp:21:15: note: deduced conflicting types for parameter ‘const _Tp’ (‘unsigned int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’}) 21 | daug = max(daug, v.size()); | ~~~^~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from olimpiada.cpp:1: /usr/include/c++/11/bits/stl_algobase.h:300:5: note: candidate: ‘template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)’ 300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ /usr/include/c++/11/bits/stl_algobase.h:300:5: note: template argument deduction/substitution failed: olimpiada.cpp:21:15: note: deduced conflicting types for parameter ‘const _Tp’ (‘unsigned int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’}) 21 | daug = max(daug, v.size()); | ~~~^~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/algorithm:62, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65, from olimpiada.cpp:2: /usr/include/c++/11/bits/stl_algo.h:3461:5: note: candidate: ‘template<class _Tp> _Tp std::max(std::initializer_list<_Tp>)’ 3461 | max(initializer_list<_Tp> __l) | ^~~ /usr/include/c++/11/bits/stl_algo.h:3461:5: note: template argument deduction/substitution failed: olimpiada.cpp:21:15: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘unsigned int’ 21 | daug = max(daug, v.size()); | ~~~^~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/algorithm:62, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65, from olimpiada.cpp:2: /usr/include/c++/11/bits/stl_algo.h:3467:5: note: candidate: ‘template<class _Tp, class _Compare> _Tp std::max(std::initializer_list<_Tp>, _Compare)’ 3467 | max(initializer_list<_Tp> __l, _Compare __comp) | ^~~ /usr/include/c++/11/bits/stl_algo.h:3467:5: note: template argument deduction/substitution failed: olimpiada.cpp:21:15: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘unsigned int’ 21 | daug = max(daug, v.size()); | ~~~^~~~~~~~~~~~~~~~
| nr. | result | time | message |
|---|
