记录详情

Compile Error

foo.c: In function 'fun':
foo.c:5:2: error: too few arguments to function 'fun'
  fun(x/n);
  ^
foo.c:2:5: note: declared here
 int fun(int x,int n){
     ^
foo.c:6:2: error: 'cout' undeclared (first use in this function)
  cout<<x%n;
  ^
foo.c:6:2: note: each undeclared identifier is reported only once for each function it appears in
foo.c: In function 'main':
foo.c:11:2: error: 'cin' undeclared (first use in this function)
  cin>>x>>n;
  ^
foo.c: In function 'fun':
foo.c:7:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

自豪的采用 HydroJudger 进行评测(github.com/hydro-dev/HydroJudger)

信息

递交者
类型
递交
题目
P1011 C语言:递归函数(进制转换)
语言
C
递交时间
2020-05-12 01:55:20
评测时间
2020-05-12 01:55:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes