Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
399 | 关清声 | x的n次方 | C++ | Runtime Error | 1994 MS | 260 KB | 223 | 2022-08-15 09:26:14 |
#include<iostream> using namespace std; int a(int x,int n,int t) { if(n==1) { return x; } else { n--; return a(x*t,n,t); } } int main() { int x,n; cin>>x>>n; cout<<a(x,n,x); return 0; }
Runtime Error:[ERROR] A not allowed system call. Call ID:275