/ /

记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1760 计算x的y次方(power)
语言
C++
递交时间
2021-08-08 16:54:56
评测时间
2021-08-08 16:54:56
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes