Home > Back-end >  c
c

Time:09-30

Which good intention person to help tell me why I debug feel wrong when I was not wrong to run not wrong ah

CodePudding user response:

I can't see any wrong

CodePudding user response:

No return value

CodePudding user response:

The above said is wrong, look at the error message

CodePudding user response:

refer to 2 floor don't know what kind of name, reply:
no return value
don't return ah

CodePudding user response:

reference 1st floor qq_46221910 response:
didn't see what wrong
does not wrong but can't run

CodePudding user response:

Since this is a c + + so it should be the main function of the return value type int, in addition, had better add return 0;

CodePudding user response:

using namespace std;

CodePudding user response:

Behind the front of the main function header file

CodePudding user response:

int main