prog.cpp:29:2: error: stray ‘#’ in program
}#include <iostream>
^
prog.cpp: In function ‘int main()’:
prog.cpp:9:8: error: ‘gets’ was not declared in this scope
gets(a);
^
prog.cpp: At global scope:
prog.cpp:29:3: error: ‘include’ does not name a type
}#include <iostream>
^~~~~~~
prog.cpp: In function ‘int main()’:
prog.cpp:32:5: error: redefinition of ‘int main()’
int main() {
^~~~
prog.cpp:4:5: note: ‘int main()’ previously defined here
int main()
^~~~