It isn't letting the code run on my computer, this is what it is saying:largeIntegers.cpp: In member function ‘largeIntegers largeIntegers::subtract(const largeIntegers&) const’: largeIntegers.cpp:34:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ largeIntegers.cpp: In member function ‘largeIntegers largeIntegers::multiply(const largeIntegers&) const’: largeIntegers.cpp:39:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ largeIntegers.cpp: In member function ‘largeIntegers largeIntegers::add(const largeIntegers&) const’: largeIntegers.cpp:66:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (i == result.digits.size()) ~~^~~~~~~~~~~~~~~~~~~~~~~ largeIntegers.cpp:70:15: warning: comparison between signed and unsigned integer expressions
It isn't letting the code run on my computer, this is what it is saying:largeIntegers.cpp: In member function ‘largeIntegers largeIntegers::subtract(const largeIntegers&) const’:
largeIntegers.cpp:34:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
largeIntegers.cpp: In member function ‘largeIntegers largeIntegers::multiply(const largeIntegers&) const’:
largeIntegers.cpp:39:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
largeIntegers.cpp: In member function ‘largeIntegers largeIntegers::add(const largeIntegers&) const’:
largeIntegers.cpp:66:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i == result.digits.size())
~~^~~~~~~~~~~~~~~~~~~~~~~
largeIntegers.cpp:70:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i < digits.size())
~~^~~~~~~~~~~~~~~
largeIntegers.cpp:72:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i < other.digits.size())
~~^~~~~~~~~~~~~~~~~~~~~
Trending now
This is a popular solution!
Step by step
Solved in 5 steps