Mã chấm: 268181


Main.cc: In function ‘int main()’:
Main.cc:8:2: error: ‘Printf’ was not declared in this scope
  Printf("Nhap so luong cay but B");
  ^~~~~~
Main.cc:8:2: note: suggested alternative: ‘printf’
  Printf("Nhap so luong cay but B");
  ^~~~~~
  printf
Main.cc:15:51: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]
  printf("So tien it nhat can mang theo: %d dong\n");
                                                   ^
Main.cc:14:6: warning: unused variable ‘totalMoney’ [-Wunused-variable]
  int totalMoney = (A*X)+(B*Y);
      ^~~~~~~~~~
Main.cc:7:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &A);
  ~~~~~^~~~~~~~~~
Main.cc:9:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &B);
  ~~~~~^~~~~~~~~~
Main.cc:11:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &X);
  ~~~~~^~~~~~~~~~
Main.cc:13:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &Y);
  ~~~~~^~~~~~~~~~