In file included from main.cpp:8:0:
num.cpp: In member function 'Num Num::operator+(const Num&)':
num.cpp:21:28: error: left operand of comma operator has no effect [-Werror=unused-value]
return new_value, Num::modulo;
^~~~~~
num.cpp:21:21: error: could not convert '((void)0, ((Num*)this)->Num::modulo)' from 'int' to 'Num'
return new_value, Num::modulo;
~~~~~~~~~^~~~~
num.cpp: At global scope:
num.cpp:24:1: error: 'NUm' does not name a type; did you mean 'Num'?
NUm Num::operator-(const Num& other) {
^~~
Num
num.cpp: In member function 'Num Num::operator*(const Num&)':
num.cpp:31:28: error: left operand of comma operator has no effect [-Werror=unused-value]
return new_value, Num::modulo;
^~~~~~
num.cpp:31:21: error: could not convert '((void)0, ((Num*)this)->Num::modulo)' from 'int' to 'Num'
return new_value, Num::modulo;
~~~~~~~~~^~~~~
cc1plus: all warnings being treated as errors
|
Файлы на сервере и клиенте не совпали
(1 668 b)
|