Mã chấm: 268836
Main.cc: In function ‘int main()’: Main.cc:23:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(KQ==1) ^ Main.cc: In function ‘int KQ(int*, int)’: Main.cc:15:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ Main.cc: In function ‘int main()’: Main.cc:18:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ~~~~~^~~~~~~~~ Main.cc:20:14: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&a[i]); ~~~~~^~~~~~~~~~~~