新手写程序报错请帮我看看
#include <iostream>
int _main()
{
int sum = 0, val = 1;
while (val <= 10) {
sum += va1;
++va1;
}
std::cout<<"Sum of 1 to 10 inclusive is"
<< sum << std::end1;
return 0;
:\users\administrator\documents\visual studio 2010\projects\he\he\he.cpp(11): error C2065: “va1”: 未声明的标识符
1>c:\users\administrator\documents\visual studio 2010\projects\he\he\he.cpp(12): error C2065: “va1”: 未声明的标识符
1>c:\users\administrator\documents\visual studio 2010\projects\he\he\he.cpp(15): error C2039: “end1”: 不是“std”的成员
1>c:\users\administrator\documents\visual studio 2010\projects\he\he\he.cpp(15): error C2065: “end1”: 未声明的标识符
我选择不使用预编译头,请大家帮忙看看怎么回事,新手请大家指正