/in/foo.c: In function 'main':
/in/foo.c:16:19: error: 's' undeclared (first use in this function)
int count=Count1(s, n)+Count2(s,n);
^
/in/foo.c:16:19: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:15:6: warning: unused variable 'kk' [-Wunused-variable]
int kk=1;//计数器 计算区域数
^~
/in/foo.c:14:6: warning: unused variable 'mm' [-Wunused-variable]
int mm=0; //计数器 计算连续的0(或者1)出现了多少次
^~
/in/foo.c:13:7: warning: unused variable 'txm' [-Wunused-variable]
char txm[50]={1};
^~~
/in/foo.c: In function 'Count1':
/in/foo.c:28:23: error: 'kk' undeclared (first use in this function)
int count=Circle(n, kk, i, s);
^~
/in/foo.c:28:30: warning: passing argument 4 of 'Circle' makes integer from pointer without a cast [-Wint-conversion]
int count=Circle(n, kk, i, s);
^
/in/foo.c:5:5: note: expected 'int' but argument is of type 'char *'
int Circle(int n, int kk, int i, int s);
^~~~~~
/in/foo.c:28:7: warning: unused variable 'count' [-Wunused-variable]
int count=Circle(n, kk, i, s);
^~~~~
/in/foo.c:31:9: error: 'count' undeclared (first use in this function); did you mean 'Count2'?
return count;
^~~~~
Count2
/in/foo.c: In function 'Count2':
/in/foo.c:41:23: error: 'kk' undeclared (first use in this function)
int count=Circle(n, kk, i, s);
^~
/in/foo.c:41:30: warning: passing argument 4 of 'Circle' makes integer from pointer without a cast [-Wint-conversion]
int count=Circle(n, kk, i, s);
^
/in/foo.c:5:5: note: expected 'int' but argument is of type 'char *'
int Circle(int n, int kk, int i, int s);
^~~~~~
/in/foo.c:41:7: warning: unused variable 'count' [-Wunused-variable]
int count=Circle(n, kk, i, s);
^~~~~
/in/foo.c:44:9: error: 'count' undeclared (first use in this function); did you mean 'Count2'?
return count;
^~~~~
Count2
/in/foo.c: In function 'Circle':
/in/foo.c:53:3: error: 'flag' undeclared (first use in this function); did you mean 'float'?
flag=0;
^~~~
float
/in/foo.c:54:4: error: subscripted value is neither array nor pointer nor vector
s[i]=flag;
^
/in/foo.c:55:3: error: 'count' undeclared (first use in this function); did you mean 'Count2'?
count=1;
^~~~~
Count2
/in/foo.c: In function 'Count1':
/in/foo.c:33:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/in/foo.c: In function 'Count2':
/in/foo.c:46:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/in/foo.c: In function 'Circle':
/in/foo.c:59:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^