| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 155408 | 刘轻松 | x的n次方 | C++ | Runtime Error | 40 MS | 65792 KB | 221 | 2026-06-07 11:32:14 |
#include<bits/stdc++.h> using namespace std; long long fun(int x, int n){ if(n==1) return x; else return fun(x,n-1)*x; } int main(){ int x,n; long long m; cin>>x>>n; m = fun(x,n); cout<<m; return 0; }
Runtime Error:Segmentation fault