Main.cc: In function ‘void read(T& ...)’:
Main.cc:25:14: warning: fold-expressions only available with -std=c++1z or -std=gnu++1z
(read(x),...);
^~~
Main.cc: In function ‘void floyd(const std::array, 11>&, std::array, 11>&, const std::array&)’:
Main.cc:39:84: error: no matching function for call to ‘get_array, 21, get_array()>()’
array,21>dis=get_array,21,get_array()>();
^
Main.cc:30:28: note: candidate: template constexpr std::array<_Tp, _Nm> get_array()
constexpr std::array get_array() {
^~~~~~~~~
Main.cc:30:28: note: template argument deduction/substitution failed:
Main.cc:39:84: error: ‘struct std::array’ is not a valid type for a template non-type parameter
array,21>dis=get_array,21,get_array()>();
^
Main.cc: In function ‘node operator+(const node&, const node&)’:
Main.cc:53:69: error: no matching function for call to ‘get_array, 11, get_array()>()’
res.dis=get_array,11,get_array()>();
^
Main.cc:30:28: note: candidate: template constexpr std::array<_Tp, _Nm> get_array()
constexpr std::array get_array() {
^~~~~~~~~
Main.cc:30:28: note: template argument deduction/substitution failed:
Main.cc:53:69: error: ‘struct std::array’ is not a valid type for a template non-type parameter
res.dis=get_array,11,get_array()>();
^
Main.cc: In instantiation of ‘constexpr std::array<_Tp, _Nm> get_array() [with T = long long int; long unsigned int N = 11; T V = 1000000000000000000]’:
Main.cc:64:49: required from here
Main.cc:34:1: error: body of constexpr function ‘constexpr std::array<_Tp, _Nm> get_array() [with T = long long int; long unsigned int N = 11; T V = 1000000000000000000]’ not a return-statement
}
^
Main.cc: In function ‘void bd(long long int, long long int, long long int)’:
Main.cc:72:15: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses]
#define mid (l+r>>1)
~^~
Main.cc:78:10: note: in expansion of macro ‘mid’
bd(l,mid,ls);
^~~
Main.cc:72:15: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses]
#define mid (l+r>>1)
~^~
Main.cc:79:8: note: in expansion of macro ‘mid’
bd(mid+1,r,rs);
^~~
Main.cc: In function ‘void qu(long long int, long long int, long long int, long long int, std::array&, long long int)’:
Main.cc:72:15: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses]
#define mid (l+r>>1)
~^~
Main.cc:84:8: note: in expansion of macro ‘mid’
if(mid>=ml)qu(l,mid,ml,mr,res,ls);
^~~
Main.cc:72:15: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses]
#define mid (l+r>>1)
~^~
Main.cc:84:21: note: in expansion of macro ‘mid’
if(mid>=ml)qu(l,mid,ml,mr,res,ls);
^~~
Main.cc:72:15: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses]
#define mid (l+r>>1)
~^~
Main.cc:85:8: note: in expansion of macro ‘mid’
if(mid>’ [-Wparentheses]
#define mid (l+r>>1)
~^~
Main.cc:85:18: note: in expansion of macro ‘mid’
if(mid get_array() [with T = long long int; long unsigned int N = 11; T V = 0]’:
Main.cc:104:45: required from here
Main.cc:34:1: error: body of constexpr function ‘constexpr std::array<_Tp, _Nm> get_array() [with T = long long int; long unsigned int N = 11; T V = 0]’ not a return-statement
}
^
Main.cc: In instantiation of ‘constexpr std::array<_Tp, _Nm> get_array() [with T = long long int; long unsigned int N = 21; T V = 1000000000000000000]’:
Main.cc:39:81: required from here
Main.cc:34:1: error: body of constexpr function ‘constexpr std::array<_Tp, _Nm> get_array() [with T = long long int; long unsigned int N = 21; T V = 1000000000000000000]’ not a return-statement