Mã chấm: 98714
Main.cc: In function ‘int main()’: Main.cc:30:13: error: too many arguments to function ‘void sx(int*, int)’ sx(a,n,k); ^ Main.cc:2:6: note: declared here void sx(int a[], int n) ^~ Main.cc:24:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ~~~~~^~~~~~~~~ Main.cc:25:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&k); ~~~~~^~~~~~~~~ Main.cc:28:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&a[i]); ~~~~~^~~~~~~~~~~~