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
15503 Tạ Duy An Thao tác trên bảng ô vuông C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 1788 2023-01-15 21:38:13

Lỗi biên dịch:

Main.c:2:16: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
 void input(int &m,int &n,int k,int mt[100][100])
                ^
Main.c:24:35: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
 void xoadong(int mt[100][100],int &m,int &n,int dong)
                                   ^
Main.c:37:34: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
 void xoacot(int mt[100][100],int &m,int &n,int cot)
                                  ^
Main.c: In function ‘out’:
Main.c:62:17: warning: implicit declaration of function ‘xoadong’ [-Wimplicit-function-declaration]
                 xoadong(mt,m,n,i);
                 ^~~~~~~
Main.c:76:17: warning: implicit declaration of function ‘xoacot’ [-Wimplicit-function-declaration]
                 xoacot(mt,m,n,i);
                 ^~~~~~
Main.c: In function ‘main’:
Main.c:90:5: warning: implicit declaration of function ‘input’ [-Wimplicit-function-declaration]
     input(m,n,k,mt);
     ^~~~~
Main.c:87:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&m);
     ^~~~~~~~~~~~~~
Main.c:88:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&n);
     ^~~~~~~~~~~~~~
Main.c:89:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&k);
     ^~~~~~~~~~~~~~