Main.cc: In function 'int main()':
Main.cc:6:26: warning: format '%lf' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
printf("%.2lf",(a+b)*h/2)
^
Main.cc:7:2: error: expected ';' before 'return'
return 0;
^