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
267955 Quách Dương Thiên Bảo Ministop HUTECH C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 408 2023-11-18 19:38:45

Lỗi biên dịch:

Main.cc: In function ‘int main()’:
Main.cc:10:13: error: ‘tientra’ was not declared in this scope
             tientra = (A * X) + (B * Y);
             ^~~~~~~
Main.cc:16:13: error: expected ‘;’ before ‘:’ token
     return 0:
             ^
Main.cc:16:13: error: expected primary-expression before ‘:’ token
Main.cc:7:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d%d%d", &A, &B, &X, &Y);
     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~