为什么一行只有3个输出?
#include<bits/stdc++.h>
using namespace std;
int main(){
int t;
cin>>t;
while(t--){
string s;
bool bin_=1,oct_=1,dec_=1,hex_=1;
cin>>s;
for(int i=0;i<s.size();i++){
if(s[i]>'1'){
bin_=0;
}
if(s[i]>'7'){
oct_=0;
}
if(s[i]>'9'){
dec_=0;
}
if(s[i]>'F'){
hex_=0;
}
if(s[i]<'0'){
bin_=oct_=dec_=hex_=0;
}
}
cout<<bin_<<" "<<oct_<<" "<<dec<<" "<<hex_<<endl;
}
return 0;
}