Mã chấm: 577414


Main.cc: In function ‘int check(char*)’:
Main.cc:10:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
   10 |         for (int i = 1; i < strlen(s)-1 ;i++){
      |                         ~~^~~~~~~~~~~~~
Main.cc:17:14: error: ‘n’ was not declared in this scope
   17 |         if(s[n-1] =='{' || s[0] == '[' || s[0] == '(' || s[0] == '<') return 0;
      |              ^
Main.cc: In function ‘int main()’:
Main.cc:23:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   23 |         scanf("%s",s);
      |         ~~~~~^~~~~~~~