#include
#include
using namespace std;
int main() {
char words[100];
cin.getline(words,100);
string morse[]={".-","-…","-.-.","-…",".","…-.","–.","…","…",".—","-.-",".-…","–","-.","—",".–.","–.-",".-.","…","-","…-","…-",".–","-…-","-.–","–…"};
string n="";
for(int i=0;i<4;i++)
{
for(int j=0;j<4;j++)
{
n+=morse[j-‘a’];
}
cout<<n<<endl;
}
return 0;
}
This is my code for this problem. This is not giving any output why ?