运行 ID: 3872

Main.cc: In function ‘int main()’:
Main.cc:4:15: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=]
  scanf("%d",&T);
             ~~^
Main.cc:6:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
   gets(a);
         ^
In file included from /usr/include/stdio.h:862:0,
                 from /usr/include/c++/7/cstdio:42,
                 from /usr/include/c++/7/ext/string_conversions.h:43,
                 from /usr/include/c++/7/bits/basic_string.h:6361,
                 from /usr/include/c++/7/string:52,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from Main.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:232:1: note: declared here
 gets (char *__str)
 ^~~~
Main.cc:7:12: warning: array subscript has type ‘char’ [-Wchar-subscripts]
   while(a[i]!='\0'){
            ^
Main.cc:8:10: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    if(a[i]=='a'||a[i]!='e'||a[i]!='i'||a[i]!='o'||a[i]!='u'||a[i]=='A'||a[i]!='E'||a[i]!='I'||a[i]!='O'||a[i]!='U'){
          ^
Main.cc:8:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    if(a[i]=='a'||a[i]!='e'||a[i]!='i'||a[i]!='o'||a[i]!='u'||a[i]=='A'||a[i]!='E'||a[i]!='I'||a[i]!='O'||a[i]!='U'){
                     ^
Main.cc:8:32: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    if(a[i]=='a'||a[i]!='e'||a[i]!='i'||a[i]!='o'||a[i]!='u'||a[i]=='A'||a[i]!='E'||a[i]!='I'||a[i]!='O'||a[i]!='U'){
                                ^
Main.cc:8:43: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    if(a[i]=='a'||a[i]!='e'||a[i]!='i'||a[i]!='o'||a[i]!='u'||a[i]=='A'||a[i]!='E'||a[i]!='I'||a[i]!='O'||a[i]!='U'){
                                           ^
Main.cc:8:54: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    if(a[i]=='a'||a[i]!='e'||a[i]!='i'||a[i]!='o'||a[i]!='u'||a[i]=='A'||a[i]!='E'||a[i]!='I'||a[i]!='O'||a[i]!='U'){
                                                      ^
Main.cc:8:65: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    if(a[i]=='a'||a[i]!='e'||a[i]!='i'||a[i]!='o'||a[i]!='u'||a[i]=='A'||a[i]!='E'||a[i]!='I'||a[i]!='O'||a[i]!='U'){
                                                                 ^
Main.cc:8:76: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    if(a[i]=='a'||a[i]!='e'||a[i]!='i'||a[i]!='o'||a[i]!='u'||a[i]=='A'||a[i]!='E'||a[i]!='I'||a[i]!='O'||a[i]!='U'){
                                                                            ^
Main.cc:8:87: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    if(a[i]=='a'||a[i]!='e'||a[i]!='i'||a[i]!='o'||a[i]!='u'||a[i]=='A'||a[i]!='E'||a[i]!='I'||a[i]!='O'||a[i]!='U'){
                                                                                       ^
Main.cc:8:98: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    if(a[i]=='a'||a[i]!='e'||a[i]!='i'||a[i]!='o'||a[i]!='u'||a[i]=='A'||a[i]!='E'||a[i]!='I'||a[i]!='O'||a[i]!='U'){
                                                                                                  ^
Main.cc:8:109: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    if(a[i]=='a'||a[i]!='e'||a[i]!='i'||a[i]!='o'||a[i]!='u'||a[i]=='A'||a[i]!='E'||a[i]!='I'||a[i]!='O'||a[i]!='U'){
                                                                                                             ^
Main.cc:9:11: warning: array subscript has type ‘char’ [-Wchar-subscripts]
     if(a[i]=='a'||a[i]!='e'||a[i]!='i'||a[i]!='o'||a[i]!='u'){
           ^
Main.cc:9:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
     if(a[i]=='a'||a[i]!='e'||a[i]!='i'||a[i]!='o'||a[i]!='u'){
                      ^
Main.cc:9:33: warning: array subscript has type ‘char’ [-Wchar-subscripts]
     if(a[i]=='a'||a[i]!='e'||a[i]!='i'||a[i]!='o'||a[i]!='u'){
                                 ^
Main.cc:9:44: warning: array subscript has type ‘char’ [-Wchar-subscripts]
     if(a[i]=='a'||a[i]!='e'||a[i]!='i'||a[i]!='o'||a[i]!='u'){
                                            ^
Main.cc:9:55: warning: array subscript has type ‘char’ [-Wchar-subscripts]
     if(a[i]=='a'||a[i]!='e'||a[i]!='i'||a[i]!='o'||a[i]!='u'){
                                                       ^
Main.cc:10:9: warning: array subscript has type ‘char’ [-Wchar-subscripts]
      a[i]+=32;
         ^
Main.cc:12:13: warning: array subscript has type ‘char’ [-Wchar-subscripts]
     else a[i]=a[i];
             ^
Main.cc:12:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
     else a[i]=a[i];
                  ^
Main.cc:13:4: error: expected ‘}’ before ‘else’
    else if(a[i]=='B'||a[i]=='C'||a[i]=='D'||a[i]=='F'||a[i]=='G'||a[i]=='H'||a[i]=='J'||a[i]=='K'||a[i]=='L'||a[i]=='M'||a[i]=='N'||a[i]=='P'||a[i]=='Q'||a[i]=='R'||a[i]=='S'||a[i]=='T'||a[i]=='V'||a[i]=='W'||a[i]=='X'||a[i]=='Y'||a[i]=='Z'){
    ^~~~
Main.cc:13:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    else if(a[i]=='B'||a[i]=='C'||a[i]=='D'||a[i]=='F'||a[i]=='G'||a[i]=='H'||a[i]=='J'||a[i]=='K'||a[i]=='L'||a[i]=='M'||a[i]=='N'||a[i]=='P'||a[i]=='Q'||a[i]=='R'||a[i]=='S'||a[i]=='T'||a[i]=='V'||a[i]=='W'||a[i]=='X'||a[i]=='Y'||a[i]=='Z'){
               ^
Main.cc:13:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    else if(a[i]=='B'||a[i]=='C'||a[i]=='D'||a[i]=='F'||a[i]=='G'||a[i]=='H'||a[i]=='J'||a[i]=='K'||a[i]=='L'||a[i]=='M'||a[i]=='N'||a[i]=='P'||a[i]=='Q'||a[i]=='R'||a[i]=='S'||a[i]=='T'||a[i]=='V'||a[i]=='W'||a[i]=='X'||a[i]=='Y'||a[i]=='Z'){
                          ^
Main.cc:13:37: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    else if(a[i]=='B'||a[i]=='C'||a[i]=='D'||a[i]=='F'||a[i]=='G'||a[i]=='H'||a[i]=='J'||a[i]=='K'||a[i]=='L'||a[i]=='M'||a[i]=='N'||a[i]=='P'||a[i]=='Q'||a[i]=='R'||a[i]=='S'||a[i]=='T'||a[i]=='V'||a[i]=='W'||a[i]=='X'||a[i]=='Y'||a[i]=='Z'){
                                     ^
Main.cc:13:48: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    else if(a[i]=='B'||a[i]=='C'||a[i]=='D'||a[i]=='F'||a[i]=='G'||a[i]=='H'||a[i]=='J'||a[i]=='K'||a[i]=='L'||a[i]=='M'||a[i]=='N'||a[i]=='P'||a[i]=='Q'||a[i]=='R'||a[i]=='S'||a[i]=='T'||a[i]=='V'||a[i]=='W'||a[i]=='X'||a[i]=='Y'||a[i]=='Z'){
                                                ^
Main.cc:13:59: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    else if(a[i]=='B'||a[i]=='C'||a[i]=='D'||a[i]=='F'||a[i]=='G'||a[i]=='H'||a[i]=='J'||a[i]=='K'||a[i]=='L'||a[i]=='M'||a[i]=='N'||a[i]=='P'||a[i]=='Q'||a[i]=='R'||a[i]=='S'||a[i]=='T'||a[i]=='V'||a[i]=='W'||a[i]=='X'||a[i]=='Y'||a[i]=='Z'){
                                                           ^
Main.cc:13:70: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    else if(a[i]=='B'||a[i]=='C'||a[i]=='D'||a[i]=='F'||a[i]=='G'||a[i]=='H'||a[i]=='J'||a[i]=='K'||a[i]=='L'||a[i]=='M'||a[i]=='N'||a[i]=='P'||a[i]=='Q'||a[i]=='R'||a[i]=='S'||a[i]=='T'||a[i]=='V'||a[i]=='W'||a[i]=='X'||a[i]=='Y'||a[i]=='Z'){
                                                                      ^
Main.cc:13:81: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    else if(a[i]=='B'||a[i]=='C'||a[i]=='D'||a[i]=='F'||a[i]=='G'||a[i]=='H'||a[i]=='J'||a[i]=='K'||a[i]=='L'||a[i]=='M'||a[i]=='N'||a[i]=='P'||a[i]=='Q'||a[i]=='R'||a[i]=='S'||a[i]=='T'||a[i]=='V'||a[i]=='W'||a[i]=='X'||a[i]=='Y'||a[i]=='Z'){
                                                                                 ^
Main.cc:13:92: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    else if(a[i]=='B'||a[i]=='C'||a[i]=='D'||a[i]=='F'||a[i]=='G'||a[i]=='H'||a[i]=='J'||a[i]=='K'||a[i]=='L'||a[i]=='M'||a[i]=='N'||a[i]=='P'||a[i]=='Q'||a[i]=='R'||a[i]=='S'||a[i]=='T'||a[i]=='V'||a[i]=='W'||a[i]=='X'||a[i]=='Y'||a[i]=='Z'){
                                                                                            ^
Main.cc:13:103: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    else if(a[i]=='B'||a[i]=='C'||a[i]=='D'||a[i]=='F'||a[i]=='G'||a[i]=='H'||a[i]=='J'||a[i]=='K'||a[i]=='L'||a[i]=='M'||a[i]=='N'||a[i]=='P'||a[i]=='Q'||a[i]=='R'||a[i]=='S'||a[i]=='T'||a[i]=='V'||a[i]=='W'||a[i]=='X'||a[i]=='Y'||a[i]=='Z'){
                                                                                                       ^
Main.cc:13:114: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    else if(a[i]=='B'||a[i]=='C'||a[i]=='D'||a[i]=='F'||a[i]=='G'||a[i]=='H'||a[i]=='J'||a[i]=='K'||a[i]=='L'||a[i]=='M'||a[i]=='N'||a[i]=='P'||a[i]=='Q'||a[i]=='R'||a[i]=='S'||a[i]=='T'||a[i]=='V'||a[i]=='W'||a[i]=='X'||a[i]=='Y'||a[i]=='Z'){
                                                                                                                  ^
Main.cc:13:125: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    else if(a[i]=='B'||a[i]=='C'||a[i]=='D'||a[i]=='F'||a[i]=='G'||a[i]=='H'||a[i]=='J'||a[i]=='K'||a[i]=='L'||a[i]=='M'||a[i]=='N'||a[i]=='P'||a[i]=='Q'||a[i]=='R'||a[i]=='S'||a[i]=='T'||a[i]=='V'||a[i]=='W'||a[i]=='X'||a[i]=='Y'||a[i]=='Z'){
                                                                                                                             ^
Main.cc:13:136: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    else if(a[i]=='B'||a[i]=='C'||a[i]=='D'||a[i]=='F'||a[i]=='G'||a[i]=='H'||a[i]=='J'||a[i]=='K'||a[i]=='L'||a[i]=='M'||a[i]=='N'||a[i]=='P'||a[i]=='Q'||a[i]=='R'||a[i]=='S'||a[i]=='T'||a[i]=='V'||a[i]=='W'||a[i]=='X'||a[i]=='Y'||a[i]=='Z'){
                                                                                                                                        ^
Main.cc:13:147: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    else if(a[i]=='B'||a[i]=='C'||a[i]=='D'||a[i]=='F'||a[i]=='G'||a[i]=='H'||a[i]=='J'||a[i]=='K'||a[i]=='L'||a[i]=='M'||a[i]=='N'||a[i]=='P'||a[i]=='Q'||a[i]=='R'||a[i]=='S'||a[i]=='T'||a[i]=='V'||a[i]=='W'||a[i]=='X'||a[i]=='Y'||a[i]=='Z'){
                                                                                                                                                   ^
Main.cc:13:158: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    else if(a[i]=='B'||a[i]=='C'||a[i]=='D'||a[i]=='F'||a[i]=='G'||a[i]=='H'||a[i]=='J'||a[i]=='K'||a[i]=='L'||a[i]=='M'||a[i]=='N'||a[i]=='P'||a[i]=='Q'||a[i]=='R'||a[i]=='S'||a[i]=='T'||a[i]=='V'||a[i]=='W'||a[i]=='X'||a[i]=='Y'||a[i]=='Z'){
                                                                                                                                                              ^
Main.cc:13:169: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    else if(a[i]=='B'||a[i]=='C'||a[i]=='D'||a[i]=='F'||a[i]=='G'||a[i]=='H'||a[i]=='J'||a[i]=='K'||a[i]=='L'||a[i]=='M'||a[i]=='N'||a[i]=='P'||a[i]=='Q'||a[i]=='R'||a[i]=='S'||a[i]=='T'||a[i]=='V'||a[i]=='W'||a[i]=='X'||a[i]=='Y'||a[i]=='Z'){
                                                                                                                                                                         ^
Main.cc:13:180: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    else if(a[i]=='B'||a[i]=='C'||a[i]=='D'||a[i]=='F'||a[i]=='G'||a[i]=='H'||a[i]=='J'||a[i]=='K'||a[i]=='L'||a[i]=='M'||a[i]=='N'||a[i]=='P'||a[i]=='Q'||a[i]=='R'||a[i]=='S'||a[i]=='T'||a[i]=='V'||a[i]=='W'||a[i]=='X'||a[i]=='Y'||a[i]=='Z'){
                                                                                                                                                                                    ^
Main.cc:13:191: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    else if(a[i]=='B'||a[i]=='C'||a[i]=='D'||a[i]=='F'||a[i]=='G'||a[i]=='H'||a[i]=='J'||a[i]=='K'||a[i]=='L'||a[i]=='M'||a[i]=='N'||a[i]=='P'||a[i]=='Q'||a[i]=='R'||a[i]=='S'||a[i]=='T'||a[i]=='V'||a[i]=='W'||a[i]=='X'||a[i]=='Y'||a[i]=='Z'){
                                                                                                                                                                                               ^
Main.cc:13:202: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    else if(a[i]=='B'||a[i]=='C'||a[i]=='D'||a[i]=='F'||a[i]=='G'||a[i]=='H'||a[i]=='J'||a[i]=='K'||a[i]=='L'||a[i]=='M'||a[i]=='N'||a[i]=='P'||a[i]=='Q'||a[i]=='R'||a[i]=='S'||a[i]=='T'||a[i]=='V'||a[i]=='W'||a[i]=='X'||a[i]=='Y'||a[i]=='Z'){
                                                                                                                                                                                                          ^
Main.cc:13:213: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    else if(a[i]=='B'||a[i]=='C'||a[i]=='D'||a[i]=='F'||a[i]=='G'||a[i]=='H'||a[i]=='J'||a[i]=='K'||a[i]=='L'||a[i]=='M'||a[i]=='N'||a[i]=='P'||a[i]=='Q'||a[i]=='R'||a[i]=='S'||a[i]=='T'||a[i]=='V'||a[i]=='W'||a[i]=='X'||a[i]=='Y'||a[i]=='Z'){
                                                                                                                                                                                                                     ^
Main.cc:13:224: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    else if(a[i]=='B'||a[i]=='C'||a[i]=='D'||a[i]=='F'||a[i]=='G'||a[i]=='H'||a[i]=='J'||a[i]=='K'||a[i]=='L'||a[i]=='M'||a[i]=='N'||a[i]=='P'||a[i]=='Q'||a[i]=='R'||a[i]=='S'||a[i]=='T'||a[i]=='V'||a[i]=='W'||a[i]=='X'||a[i]=='Y'||a[i]=='Z'){
                                                                                                                                                                                                                                ^
Main.cc:13:235: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    else if(a[i]=='B'||a[i]=='C'||a[i]=='D'||a[i]=='F'||a[i]=='G'||a[i]=='H'||a[i]=='J'||a[i]=='K'||a[i]=='L'||a[i]=='M'||a[i]=='N'||a[i]=='P'||a[i]=='Q'||a[i]=='R'||a[i]=='S'||a[i]=='T'||a[i]=='V'||a[i]=='W'||a[i]=='X'||a[i]=='Y'||a[i]=='Z'){
                                                                                                                                                                                                                                           ^
Main.cc:14:9: warning: array subscript has type ‘char’ [-Wchar-subscripts]
      a[i]-=32;
         ^
Main.cc:16:13: warning: array subscript has type ‘char’ [-Wchar-subscripts]
     else a[i]=a[i];
             ^
Main.cc:16:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
     else a[i]=a[i];
                  ^
Main.cc: At global scope:
Main.cc:20:6: error: expected constructor, destructor, or type conversion before ‘(’ token
  puts(a);
      ^
Main.cc:21:2: error: expected unqualified-id before ‘return’
  return 0;
  ^~~~~~
Main.cc:22:1: error: expected declaration before ‘}’ token
 }
 ^
Main.cc: In function ‘int main()’:
Main.cc:4:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&T);
  ~~~~~^~~~~~~~~
Main.cc:6:7: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
   gets(a);
   ~~~~^~~