In file included from main.cpp:8:0:
num.cpp:55:5: error: character constant too long for its type [-Werror]
'__rintf64'
^~~~~~~~~~~
num.cpp:68:5: error: character constant too long for its type [-Werror]
'__rintf64'
^~~~~~~~~~~
num.cpp: In member function 'Num& Num::operator+=(int)':
num.cpp:56:5: error: expected ';' before 'value'
value = (__int64(value) + num) % modulo;
^~~~~
num.cpp:56:44: error: statement has no effect [-Werror=unused-value]
value = (__int64(value) + num) % modulo;
^
num.cpp:58:5: error: expected ';' before 'return'
return *this;
^~~~~~
num.cpp:58:17: error: statement is a reference, not call, to function '__rintf64' [-Werror=address]
return *this;
^
num.cpp:58:17: error: statement has no effect [-Werror=unused-value]
num.cpp:59:1: error: no return statement in function returning non-void [-Werror=return-type]
}
^
num.cpp: In member function 'Num& Num::operator*=(int)':
num.cpp:69:5: error: expected ';' before 'value'
value = (__int64(value) * num) % modulo;
^~~~~
num.cpp:69:44: error: statement has no effect [-Werror=unused-value]
value = (__int64(value) * num) % modulo;
^
num.cpp:71:5: error: expected ';' before 'return'
return *this;
^~~~~~
num.cpp:71:17: error: statement is a reference, not call, to function '__rintf64' [-Werror=address]
return *this;
^
num.cpp:71:17: error: statement has no effect [-Werror=unused-value]
num.cpp:72:1: error: no return statement in function returning non-void [-Werror=return-type]
}
^
cc1plus: all warnings being treated as errors
|