/in/polynomial.cpp: In member function 'Polynomial Polynomial::operator+(const Polynomial&)':
/in/polynomial.cpp:36:22: warning: unused variable 'maxdegree' [-Wunused-variable]
unsigned int maxdegree=that.getDegree();
^~~~~~~~~
/in/polynomial.cpp:40:22: warning: unused variable 'maxdegree' [-Wunused-variable]
unsigned int maxdegree=this->degree;
^~~~~~~~~
/in/polynomial.cpp:34:18: warning: variable 'mindegree' set but not used [-Wunused-but-set-variable]
unsigned int mindegree;
^~~~~~~~~
/in/polynomial.cpp: In member function 'Polynomial Polynomial::operator*(const Polynomial&)':
/in/polynomial.cpp:66:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0;i<=mult.degree;++i){
~^~~~~~~~~~~~~
/in/polynomial.cpp:68:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(unsigned int m=0;m<=i;++m){
~^~~
/in/polynomial.cpp: In member function 'Polynomial Polynomial::operator+(const Polynomial&)':
/in/polynomial.cpp:43:15: warning: 'maxdegree' may be used uninitialized in this function [-Wmaybe-uninitialized]
sum.degree=maxdegree;
~~~~~~~~~~^~~~~~~~~~