SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. else if (line[j] == ')')
  2.                 {
  3.                     ZakSkobki++;
  4.                     ZakRoundSkobka++;
  5.                     if (ZakSkobki > OpenSkobki)
  6.                     {
  7.                         cout << 1 << '\n';
  8.                         WasMistake = true;
  9.                         break;
  10.                     }
  11.                     else if (!skobki.empty() && skobki.top() != '(')
  12.                     {
  13.                         cout << 2 << '\n';
  14.                         WasMistake = true;
  15.                         break;
  16.                     }
  17.                     else if (!skobki.empty())
  18.                     {
  19.                         skobki.pop();
  20.                     }
  21.                 }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top