CARVIEW |
Select Language
HTTP/2 200
date: Tue, 14 Oct 2025 17:54:29 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=465807c066294cbc53eb1ed2e9e3567f6ef601a745cca7267b8b9b1278ce5614a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22yGx5yhPnLluowUz5FaNjIfivsOqnxJxp%22%3B%7D; HttpOnly; Path=/
cf-ray: 98e8f1339aca7679-BLR
#include <iostream>#include "StackArray.h" #include "StackList.h"using n - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "StackArray.h"
- #include "StackList.h"
- using namespace std;
- bool testBalanceBrackets(const char* text, string gear, int maxDeep = 30);
- int main()
- {
- cout << "Input stack type to work with. Either \"Array\" or \"List\": ";
- string stackType = "";
- cin >> stackType;
- if (stackType != "Array" && stackType != "List")
- {
- cerr << "Error! Stack type is incorrect!";
- return -1;
- }
- const char* test1 = "";
- cout << test1;
- cout << (testBalanceBrackets(test1, stackType) ? " right\n" : " wrong\n") << endl;
- const char* test2 = "( )";
- cout << test2;
- cout << (testBalanceBrackets(test2, stackType) ? " right\n" : " wrong\n") << endl;
- const char* test3 = "( ( [] ) )";
- cout << test3;
- cout << (testBalanceBrackets(test3, stackType) ? " right\n" : " wrong\n") << endl;
- const char* test4 = "( ( [ { } [ ] ( [ ] ) ] ) )";
- cout << test4;
- cout << (testBalanceBrackets(test4, stackType) ? " right\n" : " wrong\n") << endl;
- const char* test5 = "( ( [ { } [ ] ( [ ] ) ] ) ) )";
- cout << test5;
- cout << (testBalanceBrackets(test5, stackType) ? " right\n" : " wrong\n") << endl;
- const char* test6 = "( ( [ { } [ ] ( [ ] ) ] )";
- cout << test6;
- cout << (testBalanceBrackets(test6, stackType) ? " right\n" : " wrong\n") << endl;
- const char* test7 = "( ( [ { ] [ ] ( [ ] ) ] ) )";
- cout << test7;
- cout << (testBalanceBrackets(test7, stackType) ? " right\n" : " wrong\n") << endl;
- const char* test8 = "( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( (";
- cout << test8;
- cout << (testBalanceBrackets(test8, stackType) ? " right\n" : " wrong\n") << endl;
- const char* test9 = "( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )";
- cout << test9;
- cout << (testBalanceBrackets(test9, stackType) ? " right\n" : " wrong\n") << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
🚨 Free Crypto Method 🚨
JavaScript | 1 sec ago | 0.24 KB
-
✅ Marketplace Glitch ✅ Working NEVER SEEN BE...
JavaScript | 6 sec ago | 0.25 KB
-
⭐⭐⭐MAKE $900 INSTANTLY⭐⭐
Java | 9 sec ago | 0.15 KB
-
💡 Instant BTC Profit Method ✅ Working
JavaScript | 10 sec ago | 0.24 KB
-
📝 EASY MONEY GUIDE ✅ Working J
JavaScript | 14 sec ago | 0.25 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ X
JavaScript | 15 sec ago | 0.25 KB
-
📝 MAKE $2500 IN 15 MIN ✅ Working
JavaScript | 20 sec ago | 0.24 KB
-
⭐⭐⭐MAKE $900 INSTANTLY⭐⭐
Java | 21 sec ago | 0.15 KB
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