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
13677 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 304 2022-12-29 19:51:59

Lỗi biên dịch:

Main.c: In function ‘main’:
Main.c:9:17: 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 d = pow(x,2);
    ^~~
Main.c:11:15: error: ‘d’ undeclared (first use in this function)
    int fx = a*d+b*x+c;
               ^
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);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~