Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
7796 | 柯宇希 | x的n次方 | C++ | Runtime Error | 2001 MS | 260 KB | 483 | 2025-05-21 22:34:43 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int number(int x,int n){ int a=x; int b; for(int i=1;i<=n;i++){ b=a*x; return number(a,n); } cout<<b<<endl; } int main(){ int x,n; cin>>x>>n; cout<<number(x,n)<<endl; return 0; }
Runtime Error:[ERROR] A not allowed system call. Call ID:275