Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# C# Collections Sets and Dictionaries Dictionary

error when running

So, I'm getting two error when running(at about 8:48 in the video) the code to check that its still working. "treehouse:~/workspace$ mcs *.cs
MorseCodeTranslator.cs(75,20): error CS1525: Unexpected symbol character', expecting.'
MorseCodeTranslator.cs(75,48): error CS1525: Unexpected symbol )', expecting;' or `}'
Compilation failed: 2 error(s), 0 warnings "

I'm thinking there is a typo somewhere I'm not seeing Here is the snapshot. https://w.trhou.se/2txtzxmxsf

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there, Scott George! The typo that stands out to me is on line 75 of MorseCodeTranslator.cs.

I see this:

foreah(char character in input.ToUpper())

But you meant:

foreach(char character in input.ToUpper())

Note the missing "c" in the foreah of your loop :smiley:

Hope this helps! :sparkles:

Jennifer Nordell DOH'! I'll edit, thanks! :)