Mã chấm: 465080


Main.cc: In function ‘int kiemtra1(char*)’:
Main.cc:12:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
   12 |         for(int i=0;i=(strlen(kitu)-1)/2;j--)
      |                                            ~^~~~~~~~~~~~~~~~~~~~
Main.cc:14:32: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
   14 |                         if(i+j == strlen(kitu)-1)
      |                            ~~~~^~~~~~~~~~~~~~~~~
Main.cc:15:36: error: ‘a’ was not declared in this scope
   15 |                                 if(a[i] != a[j])
      |                                    ^
Main.cc:12:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
   12 |         for(int i=0;i(strlen(kitu)-1)/2;i--)
      |                                  ~^~~~~~~~~~~~~~~~~~~
Main.cc:25:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
   25 |                 if(kitu[i] =='}'||kitu[i] ==']'||kitu[i] ==')')
      |                 ^~
Main.cc:27:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
   27 |                         return 1;
      |                         ^~~~~~
Main.cc: In function ‘void nhap(char*)’:
Main.cc:7:14: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |         fgets(kitu,101,stdin);
      |         ~~~~~^~~~~~~~~~~~~~~~