prog.cpp: In function ‘int main()’:
prog.cpp:16:5: error: redeclaration of ‘int a’
int a=5,b=3,sum;
^
prog.cpp:10:5: note: ‘int a’ previously declared here
int a=3;
^
prog.cpp:16:9: error: conflicting declaration ‘int b’
int a=5,b=3,sum;
^
prog.cpp:11:7: note: previous declaration as ‘float b’
float b=1.2;
^