Little error in the code

cant figure out the error
code:
#include
#include
#include
using namespace std;
bool balanceP(string *s){
stack stk;
for(int i=0;i!=’\0’;i++){
string ch=s[i];
if(ch==’(’){
stk.push(ch);
}
else if(ch==’)’){
if(stk.empty() or stk.top()!=’(’){
return false;
}
stk.pop();
}
}
return stk.empty();

}
int main(){
string s[100];
cin>>s;
if(balanceP(s)){
cout<<β€œYes”<<endl;
}
else{
cout<<β€œNo”<<endl;
}
return 0;
}

hi @anshita_1312 send the code link by saving in ide.codingblocks.com

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.