Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- prog.cc:51:12: warning: returning reference to local temporary object [-Wreturn-stack-address]
- return a.value;
- ^~~~~~~
- prog.cc:61:12: warning: returning reference to local temporary object [-Wreturn-stack-address]
- return a.value;
- ^~~~~~~
- prog.cc:66:12: warning: returning reference to local temporary object [-Wreturn-stack-address]
- return Fraction(-a.value);
- ^~~~~~~~~~~~~~~~~~
- prog.cc:64:62: warning: unused parameter 'b' [-Wunused-parameter]
- const Fraction& operator/(const Fraction& a, const Fraction& b)
- ^
- prog.cc:80:1: warning: all paths through this function will call itself [-Winfinite-recursion]
- {
- ^
- prog.cc:85:1: warning: all paths through this function will call itself [-Winfinite-recursion]
- {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement