Mã chấm |
Tài khoản |
Bài tập |
Ngôn ngữ lập trình |
Trạng thái |
Thời gian |
Bộ nhớ |
Kích thước |
Thời gian nộp |
268078 |
Lê Quang Minh |
Số PI |
C/C++ |
Lỗi biên dịch (CE) |
0 MS
|
0 KB
|
432 |
2023-11-18 19:48:28 |
Lỗi biên dịch:
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);
~~~~~^~~~~~~~~