记录详情

Compile Error

foo.c: In function 'main':
foo.c:7:10: warning: implicit declaration of function 'c' [-Wimplicit-function-declaration]
     cout=c(n,m);
          ^
foo.c:8:10: warning: implicit declaration of function 'sum' [-Wimplicit-function-declaration]
     sout=sum(c);
          ^~~
foo.c:9:14: error: 'scout' undeclared (first use in this function); did you mean 'sout'?
  printf("%d",scout);
              ^~~~~
              sout
foo.c:9:14: note: each undeclared identifier is reported only once for each function it appears in
foo.c:5:18: warning: variable 'sout' set but not used [-Wunused-but-set-variable]
     int n,m,cout,sout;
                  ^~~~
foo.c:5:13: warning: variable 'cout' set but not used [-Wunused-but-set-variable]
     int n,m,cout,sout;
             ^~~~
foo.c: In function 'c':
foo.c:16:16: warning: implicit declaration of function 'zuhe' [-Wimplicit-function-declaration]
         return zuhe(n-1,m)+zuhe(n-1,m-1);
                ^~~~
foo.c: In function 'sum':
foo.c:21:2: error: expected ',' or ';' before 'for'
  for(int i=0;i<c/2;i++)
  ^~~
foo.c:21:14: error: 'i' undeclared (first use in this function)
  for(int i=0;i<c/2;i++)
              ^
foo.c:21:23: error: expected ';' before ')' token
  for(int i=0;i<c/2;i++)
                       ^
foo.c:21:23: error: expected statement before ')' token
foo.c: In function 'main':
foo.c:6:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d %d",&m,&n);
     ^~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1303 G. Mathforces
语言
C
递交时间
2021-11-21 15:57:06
评测时间
2021-11-21 15:57:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes