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
269807 Nguyễn Huy Hoàng Tô màu C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 587 2023-11-18 21:58:20

Lỗi biên dịch:

Main.cc: In function ‘int main()’:
Main.cc:29:2: error: ‘nhap_matran1’ was not declared in this scope
  nhap_matran1(bang,m,n);
  ^~~~~~~~~~~~
Main.cc:29:2: note: suggested alternative: ‘nhap_matran’
  nhap_matran1(bang,m,n);
  ^~~~~~~~~~~~
  nhap_matran
Main.cc: In function ‘void nhap_matran(char (*)[100], int, int)’:
Main.cc:9:9: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
    scanf("%c", &bang[j][i]);
    ~~~~~^~~~~~~~~~~~~~~~~~~
Main.cc: In function ‘int xu_ly(char (*)[100], int, int, int)’:
Main.cc:24:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
Main.cc: In function ‘int main()’:
Main.cc:28:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d%d", &n , &m , &k);
  ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~