Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. prog.cc:51:12: warning: returning reference to local temporary object [-Wreturn-stack-address]
  2. return a.value;
  3. ^~~~~~~
  4. prog.cc:61:12: warning: returning reference to local temporary object [-Wreturn-stack-address]
  5. return a.value;
  6. ^~~~~~~
  7. prog.cc:66:12: warning: returning reference to local temporary object [-Wreturn-stack-address]
  8. return Fraction(-a.value);
  9. ^~~~~~~~~~~~~~~~~~
  10. prog.cc:64:62: warning: unused parameter 'b' [-Wunused-parameter]
  11. const Fraction& operator/(const Fraction& a, const Fraction& b)
  12. ^
  13. prog.cc:80:1: warning: all paths through this function will call itself [-Winfinite-recursion]
  14. {
  15. ^
  16. prog.cc:85:1: warning: all paths through this function will call itself [-Winfinite-recursion]
  17. {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement