2N应该是2*N,自己改了过来了,但是还是有错,
main.cpp
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(13) : error C2143: syntax error : missing ';' before 'for'
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(13) : error C2143: syntax error : missing ')' before ';'
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(13) : error C2143: syntax error : missing ';' before '<'
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(13) : error C2501: 's' : missing storage-class or type specifiers
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(13) : error C2086: 's' : redefinition
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(13) : error C2143: syntax error : missing ';' before '<'
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(13) : error C2143: syntax error : missing ';' before '++'
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(13) : error C2501: 's' : missing storage-class or type specifiers
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(13) : error C2086: 's' : redefinition
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(13) : error C2143: syntax error : missing ';' before '++'
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(13) : error C2059: syntax error : ')'
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(13) : error C2143: syntax error : missing ';' before '{'
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(13) : error C2447: missing function header (old-style formal list?)
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(19) : error C2143: syntax error : missing ';' before 'for'
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(19) : error C2143: syntax error : missing ')' before ';'
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(19) : error C2143: syntax error : missing ';' before '<'
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(19) : error C2501: 's' : missing storage-class or type specifiers
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(19) : error C2086: 's' : redefinition
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(19) : error C2143: syntax error : missing ';' before '<'
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(19) : error C2143: syntax error : missing ';' before '++'
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(19) : error C2501: 's' : missing storage-class or type specifiers
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(19) : error C2086: 's' : redefinition
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(19) : error C2143: syntax error : missing ';' before '++'
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(19) : error C2059: syntax error : ')'
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(19) : error C2143: syntax error : missing ';' before '{'
E:\Program Files\Microsoft Visual Studio\MyProjects\queen_081021\main.cpp(19) : error C2447: missing function header (old-style formal list?)
Error executing cl.exe.