Main.cc:94:16: error: use of ‘auto’ in parameter declaration only available with -std=c++14 or -std=gnu++14
Poly(const auto& coeff)
^~~~
Main.cc: In constructor ‘Poly::Poly(const int&)’:
Main.cc:95:23: error: request for member ‘begin’ in ‘coeff’, which is of non-class type ‘const int’
: terms(coeff.begin(), coeff.end())
^~~~~
Main.cc:95:38: error: request for member ‘end’ in ‘coeff’, which is of non-class type ‘const int’
: terms(coeff.begin(), coeff.end())
^~~
Main.cc: In function ‘mint solve(int, int)’:
Main.cc:189:19: error: call of overloaded ‘Poly(int&)’ is ambiguous
Poly f(n);
^
Main.cc:94:5: note: candidate: Poly::Poly(const int&) [with T = Modular<998244353>]
Poly(const auto& coeff)
^~~~
Main.cc:88:5: note: candidate: Poly::Poly(int) [with T = Modular<998244353>]
Poly(int degree = 0)
^~~~
Main.cc:87:8: note: candidate: Poly >::Poly(const Poly >&)
struct Poly {
^~~~
Main.cc:87:8: note: candidate: Poly >::Poly(Poly >&&)
Main.cc:196:10: error: missing template arguments before ‘pow_f’
Poly pow_f(f);
^~~~~
Main.cc:199:20: error: ‘pow_f’ was not declared in this scope
ans += g * pow_f;
^~~~~
Main.cc: In instantiation of ‘Poly > operator-(const Poly >&, const Poly >&)’:
Main.cc:144:44: required from ‘Poly Poly::operator-() const [with T = Modular<998244353>]’
Main.cc:194:10: required from here
Main.cc:129:14: error: call of overloaded ‘Poly(const int&)’ is ambiguous
Poly res(max(lhs.get_deg(), rhs.get_deg()));
^~~
Main.cc:94:5: note: candidate: Poly::Poly(const int&) [with T = Modular<998244353>]
Poly(const auto& coeff)
^~~~
Main.cc:88:5: note: candidate: Poly::Poly(int) [with T = Modular<998244353>]
Poly(int degree = 0)
^~~~
Main.cc:87:8: note: candidate: Poly >::Poly(const Poly >&)
struct Poly {
^~~~
Main.cc:87:8: note: candidate: Poly >::Poly(Poly >&&)
Main.cc: At global scope:
Main.cc:54:17: warning: inline function ‘bool operator!=(const Modular<998244353>&, const Modular<998244353>&)’ used but never defined
friend bool operator!=(const Modular& lhs, const Modular& rhs) { return lhs.val != rhs.val; }
^~~~~~~~
Main.cc:47:21: warning: inline function ‘Modular<998244353>& operator+=(Modular<998244353>&, const Modular<998244353>&)’ used but never defined
friend Modular& operator+=(Modular& lhs, const Modular& rhs) { return lhs = lhs + rhs; }
^~~~~~~~
Main.cc:48:21: warning: inline function ‘Modular<998244353>& operator-=(Modular<998244353>&, const Modular<998244353>&)’ used but never defined
friend Modular& operator-=(Modular& lhs, const Modular& rhs) { return lhs = lhs - rhs; }
^~~~~~~~