initialise N
int N = 3 ; int dp [ N + 1 ] [ 2 ] ; memset ( dp , -1 , sizeof ( dp ) ) ; if ( divisorGame ( N , 1 , dp ) == true ) cout << " Player ▁ A ▁ wins " ; else cout << " Player ▁ B ▁ wins " ; return 0 ; }