Mã chấm: 271991


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