记录详情

Compile Error

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

信息

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