ll ans=0; string s; while(cin>>s) for(auto i:s) if(_____________) {ans++;break;} cout<<ans<<"\n";
其實不用這麼麻煩
while(cin>>s)就好了