Mã chấm: 268786


Main.cc: In function ‘int main()’:
Main.cc:26:5: error: expected ‘;’ before ‘}’ token
     }while (n < 1 || n > 1000);
     ^
Main.cc: In function ‘void nhap(int*, int)’:
Main.cc:8:14: 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:25:14: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d", &n)
         ~~~~~^~~~~~~~~~