Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
103768 | 卢语涵 | x的n次方 | C++ | Compile Error | 0 MS | 0 KB | 273 | 2024-12-29 15:12:57 |
#include<bits/stdc++.h> using namespace std; long long cf(long long x,long long n){ if(x==0){ return 0; } if(n==0){ return 0; } return x*cf(x,n-1); } int main(){ int x,y; cin>>x>>y; cout<<cf(); return 0; }
Main.cc: In function 'int main()': Main.cc:15:14: error: too few arguments to function 'long long int cf(long long int, long long int)' cout<