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 |
271988 |
Võ Anh Kiệt |
THUÊ XE |
C/C++ |
Lỗi biên dịch (CE) |
0 MS
|
0 KB
|
368 |
2023-11-21 10:12:38 |
Lỗi biên dịch:
Main.cc:5:19: error: expected identifier before ‘&’ token
void nhapn(int &n,&x,&y,&o){
^
Main.cc:5:22: error: expected identifier before ‘&’ token
void nhapn(int &n,&x,&y,&o){
^
Main.cc:5:25: error: expected identifier before ‘&’ token
void nhapn(int &n,&x,&y,&o){
^
Main.cc: In function ‘void nhapm(int, int*)’:
Main.cc:13:5: error: expected ‘;’ before ‘}’ token
}
^
Main.cc: In function ‘int main()’:
Main.cc:18:12: error: too few arguments to function ‘void nhapn(int&, int&, int&, int&)’
nhapn(n);
^
Main.cc:5:6: note: declared here
void nhapn(int &n,&x,&y,&o){
^~~~~
Main.cc: In function ‘void nhapn(int&, int&, int&, int&)’:
Main.cc:6:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
Main.cc:8:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&x,&y,&o);
~~~~~^~~~~~~~~~~~~~~~~~~~~
Main.cc: In function ‘void nhapm(int, int*)’:
Main.cc:12:14: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i])
~~~~~^~~~~~~~~~~~