Mã chấm: 269156
Main.cc: In function ‘int main()’: Main.cc:22:19: error: invalid conversion from ‘int’ to ‘int*’ [-fpermissive] if (luythua(n)) { ^ Main.cc:22:19: error: too few arguments to function ‘int luythua(int*, int)’ Main.cc:11:5: note: declared here int luythua(int a[], int n) { ^~~~~~~ Main.cc: In function ‘void arrayinput(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:20:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ", &n); ~~~~~^~~~~~~~~~~