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
13604 Kwon Sang Thuận Tính giá trị hàm f(x) C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 241 2022-12-29 19:42:16

Lỗi biên dịch:

Main.c: In function ‘main’:
Main.c:9:13: warning: left-hand operand of comma expression has no effect [-Wunused-value]
     }while(a,b,c,x <=0 and a,b,c,x > pow(10,6));
             ^
Main.c:9:15: warning: left-hand operand of comma expression has no effect [-Wunused-value]
     }while(a,b,c,x <=0 and a,b,c,x > pow(10,6));
               ^
Main.c:9:17: warning: left-hand operand of comma expression has no effect [-Wunused-value]
     }while(a,b,c,x <=0 and a,b,c,x > pow(10,6));
                 ^
Main.c:9:24: error: expected ‘)’ before ‘and’
     }while(a,b,c,x <=0 and a,b,c,x > pow(10,6));
                        ^~~
Main.c:10:15: warning: implicit declaration of function ‘pow’ [-Wimplicit-function-declaration]
    int fx = a*pow(x,2)+b*x+c;
               ^~~
Main.c:10:15: warning: incompatible implicit declaration of built-in function ‘pow’
Main.c:10:15: note: include ‘’ or provide a declaration of ‘pow’
Main.c:8:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
       scanf("%d %d %d %d", &a,&b,&c,&x);
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~