Mã chấm: 525489


Main.cc: In function ‘int main()’:
Main.cc:16:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   16 |     for (int i = 0; i < s.size(); i++) {
      |                     ~~^~~~~~~~~~
Main.cc:32:17: error: expected ‘}’ before ‘else’
   32 |                 else {
      |                 ^~~~
Main.cc:26:34: note: to match this ‘{’
   26 |             if (s[i] == p[j].se) {
      |                                  ^
Main.cc: At global scope:
Main.cc:40:5: error: expected unqualified-id before ‘if’
   40 |     if (q.empty()) cout << "YES";
      |     ^~
Main.cc:41:5: error: expected unqualified-id before ‘else’
   41 |     else cout << "NO";
      |     ^~~~
Main.cc:42:5: error: expected unqualified-id before ‘return’
   42 |     return 0;
      |     ^~~~~~
Main.cc:43:1: error: expected declaration before ‘}’ token
   43 | }
      | ^