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
268072 Nguyễn Minh Hiển Ministop HUTECH C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 559 2023-11-18 19:47:46

Lỗi biên dịch:

Main.cc: In function ‘int main()’:
Main.cc:9:5: error: ‘tongtien’ was not declared in this scope
     tongtien = 0;
     ^~~~~~~~
Main.cc:19:34: error: ‘y’ was not declared in this scope
     float tongtien = A * X + B * y;
                                  ^
Main.cc:11:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d", &A);
     ~~~~~^~~~~~~~~~
Main.cc:13:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d", &B);
     ~~~~~^~~~~~~~~~
Main.cc:15:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%f", &X);
     ~~~~~^~~~~~~~~~
Main.cc:17:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%f", &Y);
     ~~~~~^~~~~~~~~~