Cannot find my mistake in the code according to the question

#include
using namespace std;

int main()
{
int n;
cin >> n;

if(n <= 0 || n > 10)
{
    return 0;
}

for(int i=0; i<n; i++)
{
    int m = 1;

    // leading spaces
    for(int s=0; s<n-i-1; s++)
    {
        cout << "  ";
    }

    // print pascal values
    for(int j=0; j<=i; j++)
    {
        cout << m << "   ";

        m = m * (i-j) / (j+1);
    }

    cout << endl;
}

return 0;

}