C Plus Plus Language, Beginners Guide, Programming Journey, Productivity, Beginner.
semicolon is needed after function definition. The general syntax for defining a function is: ReturnType FunctionName ( Parameter1,Parameter2, …) { Statements } The following code shows an example of defining a main function of type int: #include <iostream> using namespace std; int main() { //