ho_t4.cpp: In function 'int get_d1(int, int)':
ho_t4.cpp:54:25: error: cannot convert 'long long int*' to 'int*'
54 | dijks(0, tmp_d, tmp_p, 0, g, ign);
| ^~~~~
| |
| long long int*
ho_t4.cpp:17:39: note: initializing argument 3 of 'void dijks(int, long long int*, int*, bool, std::vector<int>*, int)'
17 | void dijks(int st, long long d[], int p[], bool rev, vector<int> g[], int ign) {
| ~~~~^~~
ho_t4.cpp: In function 'int get_dn(int, int)':
ho_t4.cpp:62:29: error: cannot convert 'long long int*' to 'int*'
62 | dijks(n - 1, tmp_d, tmp_p, 0, g, ign);
| ^~~~~
| |
| long long int*
ho_t4.cpp:17:39: note: initializing argument 3 of 'void dijks(int, long long int*, int*, bool, std::vector<int>*, int)'
17 | void dijks(int st, long long d[], int p[], bool rev, vector<int> g[], int ign) {
| ~~~~^~~
ho_t4.cpp: In function 'int get_d1r(int, int)':
ho_t4.cpp:70:25: error: cannot convert 'long long int*' to 'int*'
70 | dijks(0, tmp_d, tmp_p, 1, gr, ign);
| ^~~~~
| |
| long long int*
ho_t4.cpp:17:39: note: initializing argument 3 of 'void dijks(int, long long int*, int*, bool, std::vector<int>*, int)'
17 | void dijks(int st, long long d[], int p[], bool rev, vector<int> g[], int ign) {
| ~~~~^~~
ho_t4.cpp: In function 'int get_dnr(int, int)':
ho_t4.cpp:78:29: error: cannot convert 'long long int*' to 'int*'
78 | dijks(n - 1, tmp_d, tmp_p, 1, gr, ign);
| ^~~~~
| |
| long long int*
ho_t4.cpp:17:39: note: initializing argument 3 of 'void dijks(int, long long int*, int*, bool, std::vector<int>*, int)'
17 | void dijks(int st, long long d[], int p[], bool rev, vector<int> g[], int ign) {
| ~~~~^~~
ho_t4.cpp: In function 'int main()':
ho_t4.cpp:111:96: error: no matching function for call to 'min(int, long long int)'
111 | int dist1 = min(get_d1(n - 1, i), get_d1(edg[i].u, i) + get_dnr(edg[i].v, i) + edg[i].c);
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from ho_t4.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
198 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: template argument deduction/substitution failed:
ho_t4.cpp:111:96: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
111 | int dist1 = min(get_d1(n - 1, i), get_d1(edg[i].u, i) + get_dnr(edg[i].v, i) + edg[i].c);
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from ho_t4.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:246:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
246 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:246:5: note: template argument deduction/substitution failed:
ho_t4.cpp:111:96: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
111 | int dist1 = min(get_d1(n - 1, i), get_d1(edg[i].u, i) + get_dnr(edg[i].v, i) + edg[i].c);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from ho_t4.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:3444:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(std::initializer_list<_Tp>)'
3444 | min(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/9/bits/stl_algo.h:3444:5: note: template argument deduction/substitution failed:
ho_t4.cpp:111:96: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
111 | int dist1 = min(get_d1(n - 1, i), get_d1(edg[i].u, i) + get_dnr(edg[i].v, i) + edg[i].c);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from ho_t4.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:3450:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(std::initializer_list<_Tp>, _Compare)'
3450 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/9/bits/stl_algo.h:3450:5: note: template argument deduction/substitution failed:
ho_t4.cpp:111:96: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
111 | int dist1 = min(get_d1(n - 1, i), get_d1(edg[i].u, i) + get_dnr(edg[i].v, i) + edg[i].c);
| ^
ho_t4.cpp:112:92: error: no matching function for call to 'min(int, long long int)'
112 | int distn = min(get_dn(0, i), get_dn(edg[i].u, i) + get_d1r(edg[i].v, i) + edg[i].c);
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from ho_t4.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
198 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: template argument deduction/substitution failed:
ho_t4.cpp:112:92: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
112 | int distn = min(get_dn(0, i), get_dn(edg[i].u, i) + get_d1r(edg[i].v, i) + edg[i].c);
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from ho_t4.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:246:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
246 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:246:5: note: template argument deduction/substitution failed:
ho_t4.cpp:112:92: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
112 | int distn = min(get_dn(0, i), get_dn(edg[i].u, i) + get_d1r(edg[i].v, i) + edg[i].c);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from ho_t4.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:3444:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(std::initializer_list<_Tp>)'
3444 | min(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/9/bits/stl_algo.h:3444:5: note: template argument deduction/substitution failed:
ho_t4.cpp:112:92: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
112 | int distn = min(get_dn(0, i), get_dn(edg[i].u, i) + get_d1r(edg[i].v, i) + edg[i].c);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from ho_t4.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:3450:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(std::initializer_list<_Tp>, _Compare)'
3450 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/9/bits/stl_algo.h:3450:5: note: template argument deduction/substitution failed:
ho_t4.cpp:112:92: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
112 | int distn = min(get_dn(0, i), get_dn(edg[i].u, i) + get_d1r(edg[i].v, i) + edg[i].c);
| ^
ho_t4.cpp:113:48: error: no matching function for call to 'min(int&, long long int)'
113 | ans = min(ans, dist1 + distn + edg[i].d);
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from ho_t4.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
198 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: template argument deduction/substitution failed:
ho_t4.cpp:113:48: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
113 | ans = min(ans, dist1 + distn + edg[i].d);
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from ho_t4.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:246:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
246 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:246:5: note: template argument deduction/substitution failed:
ho_t4.cpp:113:48: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
113 | ans = min(ans, dist1 + distn + edg[i].d);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from ho_t4.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:3444:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(std::initializer_list<_Tp>)'
3444 | min(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/9/bits/stl_algo.h:3444:5: note: template argument deduction/substitution failed:
ho_t4.cpp:113:48: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
113 | ans = min(ans, dist1 + distn + edg[i].d);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from ho_t4.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:3450:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(std::initializer_list<_Tp>, _Compare)'
3450 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/9/bits/stl_algo.h:3450:5: note: template argument deduction/substitution failed:
ho_t4.cpp:113:48: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
113 | ans = min(ans, dist1 + distn + edg[i].d);
| ^