Mã chấm: 599660


Main.cc:10:6: error: redefinition of ‘void MangA(int*, int)’
   10 | void MangA(int b[],int m){
      |      ^~~~~
Main.cc:6:6: note: ‘void MangA(int*, int)’ previously defined here
    6 | void MangA(int a[],int n){
      |      ^~~~~
Main.cc: In function ‘int main()’:
Main.cc:30:5: error: ‘MangB’ was not declared in this scope; did you mean ‘MangA’?
   30 |     MangB(b,m);
      |     ^~~~~
      |     MangA
Main.cc: In function ‘void MangA(int*, int)’:
Main.cc:8:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    8 |         scanf("%d",&a[i]);
      |         ~~~~~^~~~~~~~~~~~
Main.cc: In function ‘void MangA(int*, int)’:
Main.cc:12:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   12 |         scanf("%d",&b[i]);
      |         ~~~~~^~~~~~~~~~~~
Main.cc: In function ‘int main()’:
Main.cc:27:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   27 |     scanf("%d",&n);
      |     ~~~~~^~~~~~~~~
Main.cc:28:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   28 |     scanf("%d",&m);
      |     ~~~~~^~~~~~~~~