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#

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
231,236 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