I erased the Windows partition I had created using Boot Camp assistant and now my Mac is showing question mark on start up.
I have tried to reinstall macOS in recovery mode but it doesn’t work because the disk doesn‘t show up, then I tried to repair the disk using disk utility and it shows the following error:
nx_block_count is 29571062, while device block count is 20507899