Convert the following mathematical expression into C++ code.
Input: f(x,y) = (x + y)^2
int f(int x, int y) {
  return (x + y)^2;
}
f(x,y) = x + y + x * y + x - y; // Note: Because '^2' is atomic, the code can be condensed to this.