Author
anonymous
almost 8 years ago
Language
Compiler
Options
Author
anonymous
almost 8 years ago
$ prog.cc: In function 'RationalNum operator+(const RationalNum&, const RationalNum&)':
prog.cc:3:42: warning: unused parameter 'left' [-Wunused-parameter]
RationalNum operator+(const RationalNum& left, const RationalNum& right) {
~~~~~~~~~~~~~~~~~~~^~~~
prog.cc:3:67: warning: unused parameter 'right' [-Wunused-parameter]
RationalNum operator+(const RationalNum& left, const RationalNum& right) {
~~~~~~~~~~~~~~~~~~~^~~~~
prog.cc: In function 'int main()':
prog.cc:12:17: warning: variable 'c' set but not used [-Wunused-but-set-variable]
RationalNum c = a + b;
^
Exit Code:
0