Mã chấm: 268078
Main.cc:6:22: error: expected ‘)’ before ‘;’ token float leibniz(float a; float b; int n){ ^ Main.cc:6:38: error: expected initializer before ‘)’ token float leibniz(float a; float b; int n){ ^ Main.cc: In function ‘int main()’: Main.cc:19:27: error: too many arguments to function ‘float leibniz(float)’ float pi=leibniz(a,b,n); ^ Main.cc:6:7: note: declared here float leibniz(float a; float b; int n){ ^~~~~~~ Main.cc:18:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ~~~~~^~~~~~~~~