运行 ID: 354600

Main.cc: In function ‘int main()’:
Main.cc:9: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:9:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:9: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:9:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:9: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:9:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:9: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:9:45: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:9: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:9:56: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]