I would be grateful if anyone can explain what this error is about. In case this helps when I click on the line concerned it shows the main inline has been defined as:
1 2
inlineint main(void)
{
Is this the correct way to define the main or is there something wrong?
It's not an error. Your compiler is basically telling you "STFU, I'm not making main inline no matter how much you beg me". It's btw completely pointless to declare main as inline.