prog.cpp: In function ‘int main()’:
prog.cpp:16:3: error: expected ‘;’ before ‘}’ token
}
^
prog.cpp:17:9: error: ‘end1’ was not declared in this scope
cout<<end1; // new line
^
prog.cpp: At global scope:
prog.cpp:20:1: error: expected declaration before ‘}’ token
}
^