/ XMU_ACM /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:16:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      if(a[i]=='A'&&a[len-1-i]=='A'||a[i]=='H'&&a[len-1-i]=='H'||a[i]=='M'&&a[len-1-i]=='M'||a[i]=='I'&&a[len-1-i]=='I'||a[i]=='O'&&a[len-1-i]=='O'||a[i]=='T'&&a[len-1-i]=='T'||a[i]=='U'&&a[len-1-i]=='U'||a[i]=='V'&&a[len-1-i]=='V'||a[i]=='W'&&a[len-1-i]=='W'||a[i]=='X'&&a[len-1-i]=='X'||a[i]=='Y'&&a[len-1-i]=='Y'||a[i]=='v'&&a[len-1-i]=='v'||a[i]=='w'&&a[len-1-i]=='w'||a[i]=='o'&&a[len-1-i]=='o'||a[i]=='x'&&a[len-1-i]=='x'||a[i]=='b'&&a[len-1-i]=='d'||a[i]=='d'&&a[len-1-i]=='b'||a[i]=='q'&&a[len-1-i]=='p'||a[i]=='p'&&a[len-1-i]=='q') {
         ~~~~~~~~~^~~~~~~~~~~~~~~~~
/in/foo.cc:16:74: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      if(a[i]=='A'&&a[len-1-i]=='A'||a[i]=='H'&&a[len-1-i]=='H'||a[i]=='M'&&a[len-1-i]=='M'||a[i]=='I'&&a[len-1-i]=='I'||a[i]=='O'&&a[len-1-i]=='O'||a[i]=='T'&&a[len-1-i]=='T'||a[i]=='U'&&a[len-1-i]=='U'||a[i]=='V'&&a[len-1-i]=='V'||a[i]=='W'&&a[len-1-i]=='W'||a[i]=='X'&&a[len-1-i]=='X'||a[i]=='Y'&&a[len-1-i]=='Y'||a[i]=='v'&&a[len-1-i]=='v'||a[i]=='w'&&a[len-1-i]=='w'||a[i]=='o'&&a[len-1-i]=='o'||a[i]=='x'&&a[len-1-i]=='x'||a[i]=='b'&&a[len-1-i]=='d'||a[i]=='d'&&a[len-1-i]=='b'||a[i]=='q'&&a[len-1-i]=='p'||a[i]=='p'&&a[len-1-i]=='q') {
                                                                 ~~~~~~~~~^~~~~~~~~~~~~~~~~
/in/foo.cc:16:102: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      if(a[i]=='A'&&a[len-1-i]=='A'||a[i]=='H'&&a[len-1-i]=='H'||a[i]=='M'&&a[len-1-i]=='M'||a[i]=='I'&&a[len-1-i]=='I'||a[i]=='O'&&a[len-1-i]=='O'||a[i]=='T'&&a[len-1-i]=='T'||a[i]=='U'&&a[len-1-i]=='U'||a[i]=='V'&&a[len-1-i]=='V'||a[i]=='W'&&a[len-1-i]=='W'||a[i]=='X'&&a[len-1-i]=='X'||a[i]=='Y'&&a[len-1-i]=='Y'||a[i]=='v'&&a[len-1-i]=='v'||a[i]=='w'&&a[len-1-i]=='w'||a[i]=='o'&&a[len-1-i]=='o'||a[i]=='x'&&a[len-1-i]=='x'||a[i]=='b'&&a[len-1-i]=='d'||a[i]=='d'&&a[len-1-i]=='b'||a[i]=='q'&&a[len-1-i]=='p'||a[i]=='p'&&a[len-1-i]=='q') {
                                                                                             ~~~~~~~~~^~~~~~~~~~~~~~~~~
/in/foo.cc:16:130: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      if(a[i]=='A'&&a[len-1-i]=='A'||a[i]=='H'&&a[len-1-i]=='H'||a[i]=='M'&&a[len-1-i]=='M'||a[i]=='I'&&a[len-1-i]=='I'||a[i]=='O'&&a[len-1-i]=='O'||a[i]=='T'&&a[len-1-i]=='T'||a[i]=='U'&&a[len-1-i]=='U'||a[i]=='V'&&a[len-1-i]=='V'||a[i]=='W'&&a[len-1-i]=='W'||a[i]=='X'&&a[len-1-i]=='X'||a[i]=='Y'&&a[len-1-i]=='Y'||a[i]=='v'&&a[len-1-i]=='v'||a[i]=='w'&&a[len-1-i]=='w'||a[i]=='o'&&a[len-1-i]=='o'||a[i]=='x'&&a[len-1-i]=='x'||a[i]=='b'&&a[len-1-i]=='d'||a[i]=='d'&&a[len-1-i]=='b'||a[i]=='q'&&a[len-1-i]=='p'||a[i]=='p'&&a[len-1-i]=='q') {
                                                                                                                         ~~~~~~~~~^~~~~~~~~~~~~~~~~
/in/foo.cc:16:158: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      if(a[i]=='A'&&a[len-1-i]=='A'||a[i]=='H'&&a[len-1-i]=='H'||a[i]=='M'&&a[len-1-i]=='M'||a[i]=='I'&&a[len-1-i]=='I'||a[i]=='O'&&a[len-1-i]=='O'||a[i]=='T'&&a[len-1-i]=='T'||a[i]=='U'&&a[len-1-i]=='U'||a[i]=='V'&&a[len-1-i]=='V'||a[i]=='W'&&a[len-1-i]=='W'||a[i]=='X'&&a[len-1-i]=='X'||a[i]=='Y'&&a[len-1-i]=='Y'||a[i]=='v'&&a[len-1-i]=='v'||a[i]=='w'&&a[len-1-i]=='w'||a[i]=='o'&&a[len-1-i]=='o'||a[i]=='x'&&a[len-1-i]=='x'||a[i]=='b'&&a[len-1-i]=='d'||a[i]=='d'&&a[len-1-i]=='b'||a[i]=='q'&&a[len-1-i]=='p'||a[i]=='p'&&a[len-1-i]=='q') {
                                                                                                                                                     ~~~~~~~~~^~~~~~~~~~~~~~~~~
/in/foo.cc:16:186: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      if(a[i]=='A'&&a[len-1-i]=='A'||a[i]=='H'&&a[len-1-i]=='H'||a[i]=='M'&&a[len-1-i]=='M'||a[i]=='I'&&a[len-1-i]=='I'||a[i]=='O'&&a[len-1-i]=='O'||a[i]=='T'&&a[len-1-i]=='T'||a[i]=='U'&&a[len-1-i]=='U'||a[i]=='V'&&a[len-1-i]=='V'||a[i]=='W'&&a[len-1-i]=='W'||a[i]=='X'&&a[len-1-i]=='X'||a[i]=='Y'&&a[len-1-i]=='Y'||a[i]=='v'&&a[len-1-i]=='v'||a[i]=='w'&&a[len-1-i]=='w'||a[i]=='o'&&a[len-1-i]=='o'||a[i]=='x'&&a[len-1-i]=='x'||a[i]=='b'&&a[len-1-i]=='d'||a[i]=='d'&&a[len-1-i]=='b'||a[i]=='q'&&a[len-1-i]=='p'||a[i]=='p'&&a[len-1-i]=='q') {
                                                                                                                                                                                 ~~~~~~~~~^~~~~~~~~~~~~~~~~
/in/foo.cc:16:214: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      if(a[i]=='A'&&a[len-1-i]=='A'||a[i]=='H'&&a[len-1-i]=='H'||a[i]=='M'&&a[len-1-i]=='M'||a[i]=='I'&&a[len-1-i]=='I'||a[i]=='O'&&a[len-1-i]=='O'||a[i]=='T'&&a[len-1-i]=='T'||a[i]=='U'&&a[len-1-i]=='U'||a[i]=='V'&&a[len-1-i]=='V'||a[i]=='W'&&a[len-1-i]=='W'||a[i]=='X'&&a[len-1-i]=='X'||a[i]=='Y'&&a[len-1-i]=='Y'||a[i]=='v'&&a[len-1-i]=='v'||a[i]=='w'&&a[len-1-i]=='w'||a[i]=='o'&&a[len-1-i]=='o'||a[i]=='x'&&a[len-1-i]=='x'||a[i]=='b'&&a[len-1-i]=='d'||a[i]=='d'&&a[len-1-i]=='b'||a[i]=='q'&&a[len-1-i]=='p'||a[i]=='p'&&a[len-1-i]=='q') {
                                                                                                                                                                                                             ~~~~~~~~~^~~~~~~~~~~~~~~~~
/in/foo.cc:16:242: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      if(a[i]=='A'&&a[len-1-i]=='A'||a[i]=='H'&&a[len-1-i]=='H'||a[i]=='M'&&a[len-1-i]=='M'||a[i]=='I'&&a[len-1-i]=='I'||a[i]=='O'&&a[len-1-i]=='O'||a[i]=='T'&&a[len-1-i]=='T'||a[i]=='U'&&a[len-1-i]=='U'||a[i]=='V'&&a[len-1-i]=='V'||a[i]=='W'&&a[len-1-i]=='W'||a[i]=='X'&&a[len-1-i]=='X'||a[i]=='Y'&&a[len-1-i]=='Y'||a[i]=='v'&&a[len-1-i]=='v'||a[i]=='w'&&a[len-1-i]=='w'||a[i]=='o'&&a[len-1-i]=='o'||a[i]=='x'&&a[len-1-i]=='x'||a[i]=='b'&&a[len-1-i]=='d'||a[i]=='d'&&a[len-1-i]=='b'||a[i]=='q'&&a[len-1-i]=='p'||a[i]=='p'&&a[len-1-i]=='q') {
                                                                                                                                                                                                                                         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       flag++; 
       ~~~~~~~~~                                                                                                                                                                                                                                   
      }
                                                                                                                                                                                                                                                   
/in/foo.cc:18:14: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      }
      ~~      ^                
/in/foo.cc:18:42: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      }
                                          ^                
/in/foo.cc:18:70: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      }
                                                                      ^                
/in/foo.cc:18:98: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      }
                                                                                                  ^                
/in/foo.cc:18:126: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      }
                                                                                                                              ^
     }
     ~~                                                                                                                  
# 状态 耗时 内存占用
#1 Accepted 4ms 352.0 KiB
#2 Accepted 2ms 360.0 KiB

信息

递交者
类型
递交
题目
Alphabet(多组测试数据样题)
比赛
2018XMU程序设计竞赛网络预赛第一场
语言
C++
递交时间
2018-04-22 17:09:35
评测时间
2018-04-22 17:09:35
评测机
分数
100
总耗时
6ms
峰值内存
360.0 KiB