Search found 1 match

by nazmulislam
Wed Apr 27, 2016 4:05 pm
Forum: Other words
Topic: 673 - Parentheses Balance
Replies: 3
Views: 10366

673 - Parentheses Balance

Getting Run Time Error
plz help

#include <iostream>
#include<cstdio>
#include<cstring>
#include<string.h>
#include<stack>
using namespace std;

int main()
{
long long t;
char s[1000];
cin>>t;
getchar();

while(t--)
{
gets(s);
stack<char>mystack;
long long i,j,flag=0,l=strlen(s);
if(l==0 ...

Go to advanced search