I think your char array "input" (and "temp") is not big enough.
Because:
[/quote]Input consists of strings (one per line) each of which will consist of one to twenty valid characters.
Many thanks Val !! Got AC after changing the size of array!
[/quote]Input consists of strings (one per line) each of which will consist of one to twenty valid characters.
Code: Select all
REMOVED AFTER AC!
Got AC. The problem was the last blank line.