foo.cc: In function 'int main()':
foo.cc:6:10: error: 'y' was not declared in this scope
cin>>x>>y;
^
foo.cc:9:3: error: 'ans' was not declared in this scope
ans*=x;
^~~
foo.cc:9:3: note: suggested alternative: 'yans'
ans*=x;
^~~
yans
foo.cc:11:8: error: 'ans' was not declared in this scope
cout<<ans<<endl;
^~~
foo.cc:11:8: note: suggested alternative: 'yans'
cout<<ans<<endl;
^~~
yans
foo.cc:5:8: warning: unused variable 'yans' [-Wunused-variable]
int x,yans=1;
^~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务