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 trialLeiam Wasserburger
597 PointsIt wont compile after I did everything in the video.
How can I fix it I've tried multiple times already.
Steven Parker
231,210 PointsAn even better idea would be to make a snapshot of your workspace and post the link to it here.
Leiam Wasserburger
597 PointsHere is the code https://w.trhou.se/mw2sdc6fie
1 Answer
Alexander Davison
65,469 PointsI looks like you closed the class incorrectly. C# is complaining that you didn't close the curly brace for your class
. Instead, you "closed" the class with a close bracket ].
Try this (I left out all of the comments fyi):
class Program
{
static void Main()
{
System.Console.Write("Enter how many minutes you exercised: ");
}
}
I hope this helps. ~Alex
Don't forget to mark this answer as a Best Answer if it helped you out. Thanks!
an k
97 Pointsexcercised: ") ...error
andren
28,558 Pointsandren
28,558 PointsWe can't help you unless we can see your code. If it won't compile then there is some sort of error in it. Even a tiny typo that is really hard to spot can easily cause a program to crash, but without seeing the code we can't help you to find it.
So please post the code in question.