← Back to topics
Topic

O-morse-translator !!!

p
pK-lst
Hello guys, i did not find any bug in my code, so can you please help me. Link to my submission: http://www.z-trening.com/submit.php?submit=7100134316&subm_code=1
h
halil
"... input contains a text (not more than 2 MB of data)."
Your code:
char text[100000];
p
pK-lst
How much is 2MB of data ?
h
halil
2097152.

and finish output with cout << endl;
p
pK-lst
It still doesn't work :S
h
halil
and replace
cin.getline(text, 1000);

... and stil don't work.

I try
gets(text);

and got TLE and WA
h
halil
Check mail.