Xcode Not running program

  c++, xcode

I have a problem with Xcode not showing program after a successful build. Searched for some answers online and I was advised to update and I did. But the problem is still there.

Here is the code I was running.

//  Dog to Human age calculator

#include <iostream>
#include <cmath>
using namespace std;

int calcDogAge (int dogAge)
     return dogAge*7;

double calcDogAge (double dogAge)
     return 16*log(dogAge)+31;

int main()

    int dogsAge;
    cin >> dogsAge;
    cout << calcDogAge(dogsAge);
    cout << calcDogAge(static_cast<double>(dogsAge));
    return 0;

Source: Windows Questions C++