./test.cpp: In function 'int main(int, const char**)':
./test.cpp:7:26: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
printf("%.4f\n",h*b/2);
^
./test.cpp:17:13: error: expected '}' at end of input
return 0;
^