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
13668 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 307 2022-12-29 19:51:09

Lỗi biên dịch:

Main.c: In function ‘main’:
Main.c:9:18: error: expected ‘)’ before ‘and’
     }while (a<=0 and b<=0 and c<=0 and x<=0 and a>1000000 and b>1000000 and c>1000000 and x>1000000)
                  ^~~
Main.c:10:4: error: expected ‘;’ before ‘int’
    int x2 = pow(x,2);
    ^~~
Main.c:11:15: error: ‘x2’ undeclared (first use in this function); did you mean ‘x’?
    int fx = a*x2+b*x+c;
               ^~
               x
Main.c:11:15: note: each undeclared identifier is reported only once for each function it appears in
Main.c:8:4: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
    scanf("%d %d %d %d", &a,&b,&c,&x);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~