Compile Error

/in/foo.cc:1:1: error: stray '##' in program
    1 | ##include<bits/stdc++.h>
      | ^~
/in/foo.cc:1:3: error: 'include' does not name a type
    1 | ##include<bits/stdc++.h>
      |   ^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin>>x>>y;
      |         ^~~
/in/foo.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout<<pow(x,y)<<endl;
      |         ^~~~
/in/foo.cc:7:15: error: 'pow' was not declared in this scope
    7 |         cout<<pow(x,y)<<endl;
      |               ^~~
/in/foo.cc:7:25: error: 'endl' was not declared in this scope
    7 |         cout<<pow(x,y)<<endl;
      |                         ^~~~

信息

递交者
类型
递交
题目
P1722 计算x的y次方(power)
语言
C++
递交时间
2026-02-13 12:58:33
评测时间
2026-02-13 12:58:33
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes