0_0_36646810_26835.cpp: In instantiation of 'static constexpr Mont<P>::u32 Mont<P>::get_r() [with unsigned int P = 998244353u; Mont<P>::u32 = unsigned int]':
0_0_36646810_26835.cpp:32:34: required from 'constexpr const u32 Mont<998244353u>::r'
0_0_36646810_26835.cpp:34:19: required from 'struct Mont<998244353u>'
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:97:56: required from 'struct std::array<Mont<998244353u>, 4ull>'
0_0_36646810_26835.cpp:111:45: required from here
0_0_36646810_26835.cpp:30:3: error: body of constexpr function 'static constexpr Mont<P>::u32 Mont<P>::get_r() [with unsigned int P = 998244353u; Mont<P>::u32 = unsigned int]' not a return-statement
}
^
0_0_36646810_26835.cpp: In instantiation of 'constexpr const u32 Mont<998244353u>::r':
0_0_36646810_26835.cpp:34:19: required from 'struct Mont<998244353u>'
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:97:56: required from 'struct std::array<Mont<998244353u>, 4ull>'
0_0_36646810_26835.cpp:111:45: required from here
0_0_36646810_26835.cpp:32:34: error: 'static constexpr Mont<P>::u32 Mont<P>::get_r() [with unsigned int P = 998244353u; Mont<P>::u32 = unsigned int]' called in a constant expression
static constexpr u32 r = get_r();
^
0_0_36646810_26835.cpp:26:24: note: 'static constexpr Mont<P>::u32 Mont<P>::get_r() [with unsigned int P = 998244353u; Mont<P>::u32 = unsigned int]' is not usable as a constexpr function because:
static constexpr u32 get_r() {
^
0_0_36646810_26835.cpp: In instantiation of 'static constexpr Mont<P>::u32 Mont<P>::reduce(const u64&) [with unsigned int P = 998244353u; Mont<P>::u32 = unsigned int; Mont<P>::u64 = long long unsigned int]':
0_0_36646810_26835.cpp:41:66: required from 'constexpr Mont<P>::Mont(const int64_t&) [with unsigned int P = 998244353u; int64_t = long long int]'
0_0_36646810_26835.cpp:127:20: required from here
0_0_36646810_26835.cpp:45:3: error: body of constexpr function 'static constexpr Mont<P>::u32 Mont<P>::reduce(const u64&) [with unsigned int P = 998244353u; Mont<P>::u32 = unsigned int; Mont<P>::u64 = long long unsigned int]' not a return-statement
}
^
|