Why do I get a sigabrt error here?

#include<bits/stdc++.h>
using namespace std;

int main(){
int t;
cin>>t;
while(t–){
string s;
cin>>s;
int n = stoi(s,0,2);
if(n==0 || n==1 || s == “”){
cout<<“No\n”;
}
else{
cout<<“Yes\n”;
}
}
return 0;
}

SIGABRT errors are caused by your program aborting due to a fatal error. In C++, this is normally due to an assert statement in C++ not returning true, but some STL elements can generate this if they try to store too much memory.