Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Rasmus Andersen
Rasmus Andersen
1,569 Points

i can't seem to fix these 3 errors

here's my workspace https://w.trhou.se/k7fwmuyuuf

Rasmus Andersen
Rasmus Andersen
1,569 Points

this is my errors

Program.cs(25,10): error CS1525: Unexpected symbol `)'

Program.cs(32,6): error CS1525: Unexpected symbol `Console'

Program.cs(32,60): error CS1525: Unexpected symbol )', expectin g;' or `}'

2 Answers

Steven Parker
Steven Parker
222,348 Points

You shared the same snapshot 3 weeks ago! But the errors you show above are a bit different from what the snapshot generates, did you intend to share a different snapshot this time?

In the meantime, here's a repeat of what I already said about this snapshot:

:point_right: You just have a few typos:

  • on line 1, you're missing the semicolon (;) at the end of the line
  • on line 3, you have a semicolon where one should not be
  • on line 10, you misspelled runningTotal
  • on line 33, you also misspelled runningTotal (the 2nd time)

You still have a bit of work to do to make the program functional, but this should fix your compiler errors.

Hi Rasmus

In the while loop you have misspelled your running total variable

You might wanna do runningTotl += minutes