Main.cc: In function ‘int main()’: Main.cc:13:25: error: expected ‘}’ at end of input printf("合计为%f",c); ^ Main.cc:5:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d,%d",&a,&b); ~~~~~^~~~~~~~~~~~~~~