Compiler Error C2087
'identifier' : missing subscript
The definition of an array with multiple subscripts is missing a subscript value for a dimension higher than one.
The following sample generates C2087:
// C2087.cpp
int main() {
char a[10][]; // C2087
}
Possible resolution:
// C2087b.cpp
int main() {
char b[4][5];
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for