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
256939 Ngô Huỳnh Thế Truyền thư C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 691 2023-10-29 20:02:37

Lỗi biên dịch:

Main.cc:5:30: error: declaration of ‘a’ as multidimensional array must have bounds for all dimensions except the first
 void nhaphaisonguyen(int a[][],int d,int c)
                              ^
Main.cc:5:31: error: expected ‘)’ before ‘,’ token
 void nhaphaisonguyen(int a[][],int d,int c)
                               ^
Main.cc:5:32: error: expected unqualified-id before ‘int’
 void nhaphaisonguyen(int a[][],int d,int c)
                                ^~~
Main.cc:17:31: error: declaration of ‘a’ as multidimensional array must have bounds for all dimensions except the first
 void thoigianngannhat(int a[][],int d,int c)
                               ^
Main.cc:17:32: error: expected ‘)’ before ‘,’ token
 void thoigianngannhat(int a[][],int d,int c)
                                ^
Main.cc:17:33: error: expected unqualified-id before ‘int’
 void thoigianngannhat(int a[][],int d,int c)
                                 ^~~
Main.cc: In function ‘int main()’:
Main.cc:34:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&n);
     ~~~~~^~~~~~~~~