prog.cpp: In function ‘int main()’:
prog.cpp:13:10: error: expected ‘)’ before ‘;’ token
if(b==a*2;a1+a2==a*3;b+a2+a3==a*5){
^
prog.cpp:13:11: error: ‘a1’ was not declared in this scope
if(b==a*2;a1+a2==a*3;b+a2+a3==a*5){
^~
prog.cpp:13:14: error: ‘a2’ was not declared in this scope
if(b==a*2;a1+a2==a*3;b+a2+a3==a*5){
^~
prog.cpp:13:27: error: ‘a3’ was not declared in this scope
if(b==a*2;a1+a2==a*3;b+a2+a3==a*5){
^~