Azer.cpp: In function 'void {anonymous}::gmn()':
Azer.cpp:22:9: error: 'd' was not declared in this scope
22 | d[mn.S]=prev+mn.F;
| ^
Azer.cpp:4:11: error: 'begin' was not declared in this scope
4 | #define S second
| ^~~~~~
Azer.cpp:25:27: note: in expansion of macro 'S'
25 | for(auto [u,d]:mn.S){
| ^
Azer.cpp:4:11: note: suggested alternatives:
4 | #define S second
| ^~~~~~
Azer.cpp:25:27: note: in expansion of macro 'S'
25 | for(auto [u,d]:mn.S){
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:95,
from Azer.cpp:2:
/usr/include/c++/10/valarray:1224:5: note: 'std::begin'
1224 | begin(const valarray<_Tp>& __va)
| ^~~~~
In file included from /usr/include/c++/10/filesystem:46,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:129,
from Azer.cpp:2:
/usr/include/c++/10/bits/fs_dir.h:549:3: note: 'std::filesystem::__cxx11::begin'
549 | begin(recursive_directory_iterator __iter) noexcept
| ^~~~~
Azer.cpp:4:11: error: 'end' was not declared in this scope
4 | #define S second
| ^~~~~~
Azer.cpp:25:27: note: in expansion of macro 'S'
25 | for(auto [u,d]:mn.S){
| ^
Azer.cpp:4:11: note: suggested alternatives:
4 | #define S second
| ^~~~~~
Azer.cpp:25:27: note: in expansion of macro 'S'
25 | for(auto [u,d]:mn.S){
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:95,
from Azer.cpp:2:
/usr/include/c++/10/valarray:1244:5: note: 'std::end'
1244 | end(const valarray<_Tp>& __va)
| ^~~
In file included from /usr/include/c++/10/filesystem:46,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:129,
from Azer.cpp:2:
/usr/include/c++/10/bits/fs_dir.h:554:3: note: 'std::filesystem::__cxx11::end'
554 | end(recursive_directory_iterator) noexcept
| ^~~
Azer.cpp:30:36: error: no matching function for call to 'min(std::pair<int, int>&, <brace-enclosed initializer list>)'
30 | mn=min(mn,{d[i]-prev,i});
| ^
In file included from /usr/include/c++/10/vector:60,
from Azer.h:6,
from Azer.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:230:5: note: candidate: 'constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = std::pair<int, int>]'
230 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:230:36: note: no known conversion for argument 2 from '<brace-enclosed initializer list>' to 'const std::pair<int, int>&'
230 | min(const _Tp& __a, const _Tp& __b)
| ~~~~~~~~~~~^~~
/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:
Azer.cpp:30:36: note: candidate expects 3 arguments, 2 provided
30 | mn=min(mn,{d[i]-prev,i});
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Azer.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:
Azer.cpp:30:36: note: 'std::pair<int, int>' is not derived from 'std::initializer_list<_Tp>'
30 | mn=min(mn,{d[i]-prev,i});
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Azer.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:
Azer.cpp:30:36: note: 'std::pair<int, int>' is not derived from 'std::initializer_list<_Tp>'
30 | mn=min(mn,{d[i]-prev,i});
| ^
Azer.cpp: In function 'void InitA(int, int, std::vector<int>, std::vector<int>, std::vector<int>)':
Azer.cpp:59:16: warning: overflow in conversion from 'double' to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} changes value from '1.0e+18' to '2147483647' [-Woverflow]
59 | dis[i]=1e18;
| ^~~~
Baijan.cpp: In function 'void {anonymous}::gmn()':
Baijan.cpp:22:9: error: 'd' was not declared in this scope
22 | d[mn.S]=prev+mn.F;
| ^
Baijan.cpp:4:11: error: 'begin' was not declared in this scope
4 | #define S second
| ^~~~~~
Baijan.cpp:25:27: note: in expansion of macro 'S'
25 | for(auto [u,d]:mn.S){
| ^
Baijan.cpp:4:11: note: suggested alternatives:
4 | #define S second
| ^~~~~~
Baijan.cpp:25:27: note: in expansion of macro 'S'
25 | for(auto [u,d]:mn.S){
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:95,
from Baijan.cpp:2:
/usr/include/c++/10/valarray:1224:5: note: 'std::begin'
1224 | begin(const valarray<_Tp>& __va)
| ^~~~~
In file included from /usr/include/c++/10/filesystem:46,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:129,
from Baijan.cpp:2:
/usr/include/c++/10/bits/fs_dir.h:549:3: note: 'std::filesystem::__cxx11::begin'
549 | begin(recursive_directory_iterator __iter) noexcept
| ^~~~~
Baijan.cpp:4:11: error: 'end' was not declared in this scope
4 | #define S second
| ^~~~~~
Baijan.cpp:25:27: note: in expansion of macro 'S'
25 | for(auto [u,d]:mn.S){
| ^
Baijan.cpp:4:11: note: suggested alternatives:
4 | #define S second
| ^~~~~~
Baijan.cpp:25:27: note: in expansion of macro 'S'
25 | for(auto [u,d]:mn.S){
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:95,
from Baijan.cpp:2:
/usr/include/c++/10/valarray:1244:5: note: 'std::end'
1244 | end(const valarray<_Tp>& __va)
| ^~~
In file included from /usr/include/c++/10/filesystem:46,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:129,
from Baijan.cpp:2:
/usr/include/c++/10/bits/fs_dir.h:554:3: note: 'std::filesystem::__cxx11::end'
554 | end(recursive_directory_iterator) noexcept
| ^~~
Baijan.cpp:30:36: error: no matching function for call to 'min(std::pair<int, int>&, <brace-enclosed initializer list>)'
30 | mn=min(mn,{d[i]-prev,i});
| ^
In file included from /usr/include/c++/10/vector:60,
from Baijan.h:7,
from Baijan.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:230:5: note: candidate: 'constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = std::pair<int, int>]'
230 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:230:36: note: no known conversion for argument 2 from '<brace-enclosed initializer list>' to 'const std::pair<int, int>&'
230 | min(const _Tp& __a, const _Tp& __b)
| ~~~~~~~~~~~^~~
/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:
Baijan.cpp:30:36: note: candidate expects 3 arguments, 2 provided
30 | mn=min(mn,{d[i]-prev,i});
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Baijan.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:
Baijan.cpp:30:36: note: 'std::pair<int, int>' is not derived from 'std::initializer_list<_Tp>'
30 | mn=min(mn,{d[i]-prev,i});
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Baijan.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:
Baijan.cpp:30:36: note: 'std::pair<int, int>' is not derived from 'std::initializer_list<_Tp>'
30 | mn=min(mn,{d[i]-prev,i});
| ^
Baijan.cpp: In function 'void InitB(int, int, std::vector<int>, std::vector<int>, std::vector<int>)':
Baijan.cpp:62:16: warning: overflow in conversion from 'double' to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} changes value from '1.0e+18' to '2147483647' [-Woverflow]
62 | dis[i]=1e18;
| ^~~~