/in/foo.cc: In function 'int main()':
/in/foo.cc:11:23: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'float*' [-Wformat=]
scanf("%d,%d",&a,&b);cin>>c;
^
/in/foo.cc:11:23: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'float*' [-Wformat=]
/in/foo.cc:7:19: warning: unused variable 'q' [-Wunused-variable]
char c,e,f,g,h,q;
^
/in/foo.cc:33:10: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("%.2f",sum);
~~~~~~^~~~~~~~~~~~