运行 ID: 354598

Main.cc: In function ‘int main()’:
Main.cc:8:12: warning: comparison with string literal results in unspecified behavior [-Waddress]
   if(a[i]=="A"&&a[i]=="B"&&a[i]=="C"&&a[i]=="D"&&a[i]=="E") xf++;
            ^~~
Main.cc:8:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:8:23: warning: comparison with string literal results in unspecified behavior [-Waddress]
   if(a[i]=="A"&&a[i]=="B"&&a[i]=="C"&&a[i]=="D"&&a[i]=="E") xf++;
                       ^~~
Main.cc:8:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:8:34: warning: comparison with string literal results in unspecified behavior [-Waddress]
   if(a[i]=="A"&&a[i]=="B"&&a[i]=="C"&&a[i]=="D"&&a[i]=="E") xf++;
                                  ^~~
Main.cc:8:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:8:45: warning: comparison with string literal results in unspecified behavior [-Waddress]
   if(a[i]=="A"&&a[i]=="B"&&a[i]=="C"&&a[i]=="D"&&a[i]=="E") xf++;
                                             ^~~
Main.cc:8:45: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:8:56: warning: comparison with string literal results in unspecified behavior [-Waddress]
   if(a[i]=="A"&&a[i]=="B"&&a[i]=="C"&&a[i]=="D"&&a[i]=="E") xf++;
                                                        ^~~
Main.cc:8:56: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]