

Requesting theģ.47th element of an array does not make sense. Remember that theĪrray subscript (the number inside the square brackets) specifies This error means that you are trying to index into an array with aĪ struct, etc.-which is illegal. Or declare y outside of the switch statement. Immediately after a label (such as a case label).

The designers of C++ made this rule to simplify the problems of distinguishing the Whitespace is required between two close angle brackets for nested template arguments.

This list is by no means complete, but we have included These error messages come from gcc-you will get different wording from other compilers (including LLVM, which is what you generally get if you type gcc on Mac OSX). Since many messages can occur on various identifiers ( e.g., different variables may be undefined), id is used whenever an identifier appears in the message, and that message is alphabetized accordingly (so if you have an error that starts with x, look in alphabetical order for i, not x). This page (originally an Appendix in the book) is intended to help you understand and fix common compiler errors that you may encounter.
