#include <iostream>
using namespace std;
int i=1;
void main()
{
int i=i;
}
Error running:
error: '::main' must return 'int'
Reason: The C standard allows the main function to be of type void. In C++, main must be of type int.
Read More:
- Under the “return-d” mode, the number of “return / return” is 1
- Arrow function should not return assignment no-return-assign
- C++ —Return multiple values of different types
- Vs error unresolved external symbol_ Main, the symbol in the function “int”__ cdecl invoke_ main
- Waitpid call return error prompt: no child processes problem
- Error executing Aidl: return code 1
- Solve the problem of flag error valueerror: View function did not return a response
- Python TypeError: return arrays must be of ArrayType
- [Android test] solution for error closed after the carriage return of the ADB shell
- Eclipse software Java solution: editor does not contain a main type error box
- Vs + CUDA compilation error: msb3721, return code 255
- Error: Could not find or load main class ***
- Could not find or load main class
- When IntelliJ idea is programmed, 1. Black thick line or black cursor appears; 2. The solution of carriage return unable to wrap. (practical recommendation method 2)
- To solve the problem, start eclipse and return exit code = 13
- Failed: execution error, return code 1 from org.apache.hadoop . hive.ql.exec .DDLTask…
- A JavaScript error occurred in the main process
- In function `_start’ undefined reference to `main’ error: ld returned 1 exit status
- How Notepad + + displays all characters (for hidden carriage return spaces)
- FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(me