记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:10: warning: implicit declaration of function 'c' [-Wimplicit-function-declaration]
     cout=c(n,m);
          ^
/in/foo.c:8:10: warning: implicit declaration of function 'sum' [-Wimplicit-function-declaration]
     sout=sum(cout);
          ^~~
/in/foo.c:9:14: error: 'scout' undeclared (first use in this function)
  printf("%d",scout);
              ^~~~~
/in/foo.c:9:14: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:5:18: warning: variable 'sout' set but not used [-Wunused-but-set-variable]
     int n,m,cout,sout;
                  ^~~~
/in/foo.c: In function 'sum':
/in/foo.c:21:2: error: expected ',' or ';' before 'for'
  for(int i=0;i<k/2;i++)
  ^~~
/in/foo.c:21:14: error: 'i' undeclared (first use in this function)
  for(int i=0;i<k/2;i++)
              ^
/in/foo.c:21:23: error: expected ';' before ')' token
  for(int i=0;i<k/2;i++)
                       ^
/in/foo.c:21:23: error: expected statement before ')' token

信息

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