Can anyone tell me why my test case gives SIGSEV when input is
femOZeCArKCpUiHYnbBPTIOFmsHmcpObtPYcLCdjFrUMIyqYzAokKUiiKZRouZiNMoiOuGVoQzaaCAOkquRjmmKKElLNqCnhGdQM
The problem is String Task
Here is my implementation:
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goe
string s1;
string s2 = "";
cin>>s1;
int c = 0;
int len = s1.length();
for(int i=0;i<len;i++)
{
s2[i] = tolower(s1[i]);
if(s2[i] == 'a' || s2[i] == 'e' || s2[i] == 'i' || s2[i] == 'o' || s2[i] == 'u' || s2[i] == 'y')
continue;
else
cout<<'.'<<s2[i];
}
return 0;
}