prog.c: In function 'period':
prog.c:6:7: error: 'seq' redeclared as different kind of symbol
char seq[10] = {0, 1, 0, 1, 0, 1, 0, 1, 0, 1};
^
prog.c:4:17: note: previous definition of 'seq' was here
int period(int* seq, int len)
^
prog.c:8:2: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
scanf ("%d", seq[0]);
^
prog.c:9:2: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
scanf ("%d", seq[1]);
^
prog.c:10:2: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
scanf ("%d", seq[2]);
^
prog.c:11:2: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
scanf ("%d", seq[3]);
^
prog.c:12:2: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
scanf ("%d", seq[4]);
^
prog.c:13:2: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
scanf ("%d", seq[5]);
^
prog.c:14:2: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
scanf ("%d", seq[6]);
^
prog.c:15:2: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
scanf ("%d", seq[7]);
^
prog.c:16:2: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
scanf ("%d", seq[8]);
^
prog.c:17:2: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
scanf ("%d", seq[9]);
^
prog.c: In function 'main':
prog.c:31:1: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int (*)(int *, int)' [-Wformat=]
printf ("The period of this massive is %d", period);
^
prog.c:32:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^