#include <iostream>
using namespace std;
int main( )
{int x,y;
cin<<x;
if (x<1) y=x;
else if (x>=1&&x<10) y=2*x-1;
else y=3*x-11;
cout<<"y="<<y<<endl;
return 0;
}
编译出来错误为:error C2676: binary '<<' : 'class std::basic_istream<char,struct std::char_traits<char> >' does not define this operator or a conversion to a type acceptable to the predefined operator
执行 cl.exe 时出错.