调试后,错误如下。
D:\vc++6.0\Microsoft Visual Studio\MyProjects\111\111.cpp(5) : error C2057: expected constant expression
D:\vc++6.0\Microsoft Visual Studio\MyProjects\111\111.cpp(5) : error C2466: cannot allocate an array of constant size 0
D:\vc++6.0\Microsoft Visual Studio\MyProjects\111\111.cpp(5) : error C2087: '<Unknown>' : missing subscript
D:\vc++6.0\Microsoft Visual Studio\MyProjects\111\111.cpp(7) : error C2057: expected constant expression
D:\vc++6.0\Microsoft Visual Studio\MyProjects\111\111.cpp(7) : error C2466: cannot allocate an array of constant size 0
D:\vc++6.0\Microsoft Visual Studio\MyProjects\111\111.cpp(7) : error C2057: expected constant expression
D:\vc++6.0\Microsoft Visual Studio\MyProjects\111\111.cpp(7) : error C2466: cannot allocate an array of constant size 0
D:\vc++6.0\Microsoft Visual Studio\MyProjects\111\111.cpp(7) : error C2087: '<Unknown>' : missing subscript
D:\vc++6.0\Microsoft Visual Studio\MyProjects\111\111.cpp(7) : error C2078: too many initializers
D:\vc++6.0\Microsoft Visual Studio\MyProjects\111\111.cpp(11) : error C2065: 'n' : undeclared identifier
D:\vc++6.0\Microsoft Visual Studio\MyProjects\111\111.cpp(11) : error C2057: expected constant expression
D:\vc++6.0\Microsoft Visual Studio\MyProjects\111\111.cpp(11) : error C2466: cannot allocate an array of constant size 0
D:\vc++6.0\Microsoft Visual Studio\MyProjects\111\111.cpp(11) : error C2087: '<Unknown>' : missing subscript