As shown in the figure, an error occurs when compiling the code: RC1004 unexpected end of file found
The reason is that CPP needs one more line at last, otherwise it will report this error
Examples of errors:
int main() { return 0; }
Correct example
int main() { return 0; } // Leave a line at the end so it doesn't report an error
Similar Posts:
- [Solved] Fatal error: Call to undefined function json_decode()
- [Solved] Expected linebreaks to be ‘LF’ but found ‘CRLF’.
- Error: Can’t set headers after they are sent
- How to Solve Vue Space Line Wrap Error
- Vue solves the problem of space and blank line error reporting
- [Eclipse]–Error:The superclass “javax.servlet.http.HttpServlet” was not found on the J…
- IDEA double click can’t open no response Issue [How to Solve]
- [Solved] Centos7 Execute Script Error: syntax error near unexpected token `fi’
- How to Solve Springboot Whitelabel Error Page (Not Found)