| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 207 | 刘家源 | x的n次方 | C++ | Compile Error | 0 MS | 0 KB | 294 | 2022-07-22 09:52:00 |
#include<iostream> #include<cstdio> #include<string> #include<iomanip> #include<cmath> using namespace std; int cifang(int x,int n) { if(x==0) return x; else return cifang(x^n); int main(){ int p,y; cin>>p,y; cout<<cifang(p,y); return 0; }
Main.cc: In function 'int cifang(int, int)':
Main.cc:12:22: error: too few arguments to function 'int cifang(int, int)'
return cifang(x^n);
^
Main.cc:7:5: note: declared here
int cifang(int x,int n)
^
Main.cc:13:11: error: a function-definition is not allowed here before '{' token
int main(){
^
Main.cc:18:5: error: expected '}' at end of input
}
^
Main.cc:18:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^