i am doing an arduino decoder project where morse code is entered as a text string such as ".-" for "A" through the serial monitor and getting A printed on the lcd but, i'm getting errors and i don't understand how to fix it
Serial.read() only reads a single byte. You're treating it as if it's reading an entire string. Your variable schar is too small for most morse strings anyhow. It's just 2 bytes long, whereas morse goes upto at least 6 characters long and you should also allow a 0 terminator. I recon if you make it 8 bytes long you'll be closer but you also need to have a method to input those characters one at a time.
If you are sending the .-.- characters from the Arduino Serial Monitor you can keep reading and saving characters until a Carriage Return character is received to mark the end of the sequence.