| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 136171 | 张咏灏 | x的n次方 | C++ | Compile Error | 0 MS | 0 KB | 208 | 2025-11-09 17:17:02 |
include<bits/stdc++.h> using namespace std; long long f(int x,int n) { if(n==0) { return 1; } return f(x,n-1)*x; } int main() { int n,x; cin>>x>>n; cout<<f(x,n); return 0; }
Main.cc:1:1: error: 'include' does not name a type include ^ Main.cc: In function 'int main()': Main.cc:15:1: error: 'cin' was not declared in this scope cin>>x>>n; ^ Main.cc:16:1: error: 'cout' was not declared in this scope cout<