My Visual Studio compiler is showing me error messages even when the code is correct.
Even on a simple code like,
#include<stdio.h>
int main(){
int add(firstNumber, secondNumber){
int result=firstNumber+secondNumber;
return result;
}
int out=add(10,30);
printf("%d", out);
return 0;
}
It's showing the massage,
expected a ';', line 4
and
identifier "out" is undefined, line 9
The code runs well. But it's frustrating seeing those red lines and the error messages on my code.
Note: I'm using MinGW as a C path