while running this program i have received the following error:
prog.cpp:4:11: error: '::main' must return 'int'
void main(){
^
prog.cpp: In function 'int main()':
prog.cpp:6:3: error: 'm' was not declared in this scope
m();
ie., if you use the void method it should return some value
^
prog.cpp:8:9: error: a function-definition is not allowed here before '{' token
void m(){
^