Mã chấm: 269533


Main.cc: In function ‘int main()’:
Main.cc:21:16: error: invalid conversion from ‘unsigned int*’ to ‘int*’ [-fpermissive]
   nhap_mang(a,n);
                ^
Main.cc:5:6: note:   initializing argument 1 of ‘void nhap_mang(int*, int)’
 void nhap_mang(int a[], int n) {
      ^~~~~~~~~
Main.cc:22:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i = 0; i < n; i++) {
                  ~~^~~
Main.cc: In function ‘void nhap_mang(int*, int)’:
Main.cc:7:8: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d", &a[i]);
   ~~~~~^~~~~~~~~~~~~
Main.cc: In function ‘int main()’:
Main.cc:19:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &n);
  ~~~~~^~~~~~~~~~