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
271991 Võ Anh Kiệt THUÊ XE C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 380 2023-11-21 10:13:08

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 ‘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])
         ~~~~~^~~~~~~~~~~~