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#

Daniel Diemer
Daniel Diemer
1,937 Points

[solved]What does the second number mean for a compile error?

For example, it will say something like (15,6): Unexpected symbol ....

From what I've gathered, the 15 is where the error is detected, often that means the actual error is on line 14, depending on what type of error.

I'm not sure if I missed it in the lectures, or not, but what does the second number mean(The 6 in my example)?

Thanks all.

1 Answer

Steven Parker
Steven Parker
231,172 Points

The second number is the character position on the line.

But be prepared to look near the position indicated, since sometimes errors are not detected until code is encountered on a subsequent line.

Daniel Diemer
Daniel Diemer
1,937 Points

Ah, thank you for the quick response!