cyberland.cpp: In function 'double slv()':
cyberland.cpp:64:10: error: incompatible types in assignment of 'int' to 'double [2]'
64 | dis[0][1]=0;
| ~~~~~~~~~^~
cyberland.cpp:89:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
89 | for(int i=0;i<e[nw].size();i++){
| ~^~~~~~~~~~~~~
cyberland.cpp:90:22: error: cannot convert '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, long long int> >, std::pair<int, long long int> >::value_type' {aka 'std::pair<int, long long int>'} to 'int' in initialization
90 | int v=e[nw][i];
| ^
cyberland.cpp:109:21: error: cannot convert 'double*' to 'double' in initialization
109 | double ans=dis[0][HH];
| ~~~~~~~~~^
| |
| double*
cyberland.cpp:113:27: error: no matching function for call to 'min(double&, double [2])'
113 | ans=min(ans,dis[i][HH]);
| ^
In file included from /usr/include/c++/10/vector:60,
from cyberland.h:1,
from cyberland.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:230:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
230 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:230:5: note: template argument deduction/substitution failed:
cyberland.cpp:113:27: note: deduced conflicting types for parameter 'const _Tp' ('double' and 'double [2]')
113 | ans=min(ans,dis[i][HH]);
| ^
In file included from /usr/include/c++/10/vector:60,
from cyberland.h:1,
from cyberland.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:278:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
278 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:278:5: note: template argument deduction/substitution failed:
cyberland.cpp:113:27: note: deduced conflicting types for parameter 'const _Tp' ('double' and 'double [2]')
113 | ans=min(ans,dis[i][HH]);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from cyberland.cpp:2:
/usr/include/c++/10/bits/stl_algo.h:3468:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(std::initializer_list<_Tp>)'
3468 | min(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/10/bits/stl_algo.h:3468:5: note: template argument deduction/substitution failed:
cyberland.cpp:113:27: note: mismatched types 'std::initializer_list<_Tp>' and 'double'
113 | ans=min(ans,dis[i][HH]);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from cyberland.cpp:2:
/usr/include/c++/10/bits/stl_algo.h:3474:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(std::initializer_list<_Tp>, _Compare)'
3474 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algo.h:3474:5: note: template argument deduction/substitution failed:
cyberland.cpp:113:27: note: mismatched types 'std::initializer_list<_Tp>' and 'double'
113 | ans=min(ans,dis[i][HH]);
| ^
cyberland.cpp: In function 'double solve(int, int, int, int, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
cyberland.cpp:145:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
145 | for(int i=0;i<x.size();i++){
| ~^~~~~~~~~
cyberland.cpp:150:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
150 | for(int i=0;i<arr.size();i++){
| ~^~~~~~~~~~~