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# Basics (Retired) Console I/O Start Coding

It wont compile after I did everything in the video.

How can I fix it I've tried multiple times already.

andren
andren
28,558 Points

We 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.

Steven Parker
Steven Parker
229,744 Points

An even better idea would be to make a snapshot of your workspace and post the link to it here.

1 Answer

I 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!

excercised: ") ...error