Kalnai
- [1] 2017-10-30 21:27 (4)
- [2] 2017-10-31 21:06 (8)
- [3] 2017-11-01 15:22 (36)
- [4] 2017-11-01 15:27 (36)
- [5] 2017-11-01 15:33 (40)
- [6] 2017-11-01 16:03 (40)
- [7] 2017-11-01 16:08 (40)
- [8] 2017-11-01 16:11 (40)
- [9] 2017-11-01 16:22 (0)
- [10] 2017-11-01 16:23 (40)
- [11] 2017-11-01 16:37 (0)
- [12] 2017-11-01 16:38 (0)
- [13] 2017-11-01 16:54 (0)
- [14] 2017-11-01 16:55 (0)
- [15] 2017-11-01 17:13 (36)
- [16] 2017-11-01 17:18 (36)
- [17] 2017-11-01 20:25 (40)
- [18] 2017-11-01 20:51 (40)
- [19] 2017-11-01 21:02 (40)
- [20] 2017-11-02 12:33 (0)
- [21] 2017-11-02 12:36 (0)
- [22] 2017-11-02 12:39 (0)
- [23] 2017-11-02 12:39 (0)
- [24] 2017-11-02 12:40 (0)
- [25] 2017-11-02 12:41 (0)
- [26] 2017-11-02 12:48 (0)
- [27] 2017-11-02 12:49 (0)
- [28] 2017-11-02 13:10 (56.0)
- [29] 2017-11-02 13:13 (0)
- [30] 2017-11-02 13:13 (56.0)
- [31] 2017-11-02 20:41 (56.0)
- [32] 2017-11-03 10:14 (56.0)
- [33] 2017-11-05 15:00 (68)
- [34] 2017-11-05 15:08 (100)
- [35] 2017-11-05 15:12 (76)
Taškai: 0
Compile: FAIL
mountain.cpp: In function ‘void fix(int, int, int)’: mountain.cpp:24:26: error: no matching function for call to ‘max(long long int, int&)’ mx[v] = max(0ll, sum[v]); ^ 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 mountain.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: mountain.cpp:24:26: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘int’) mx[v] = max(0ll, sum[v]); ^ 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 mountain.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: mountain.cpp:24:26: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘int’) mx[v] = max(0ll, sum[v]); ^ 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 mountain.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: mountain.cpp:24:26: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘long long int’ mx[v] = max(0ll, sum[v]); ^ 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 mountain.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: mountain.cpp:24:26: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘long long int’ mx[v] = max(0ll, sum[v]); ^
nr. | result | time | message |
---|