Mã chấm: 271318
Main.cc: In function ‘int main()’: Main.cc:13:18: warning: comparison with string literal results in unspecified behavior [-Waddress] if(a[j]=="1") ^~~ Main.cc:13:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] Main.cc:16:18: warning: comparison with string literal results in unspecified behavior [-Waddress] if(a[k]=="0") ^~~ Main.cc:16:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] Main.cc:9:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d",&n,&x,&y); ~~~~~^~~~~~~~~~~~~~~~~~~~~ Main.cc:11:14: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&a[i]); ~~~~~^~~~~~~~~~~~