Getting arithmetic exception error in code

error --> /bin/run.sh: line 4: 20 Arithmetic exception (core dumped) ./exe

my code -

ok i have understood but in my code i invoked fac and ncr functions in the int main, but when i removed them as i did not need to call them in main, the code started to work perfectly

also for about a day i have not been able to access my course or any questions or lectures on the coding blocks site. i have mailed my issue to the support team but could i be provided with some questions till then so that i can practice in the time being