/in/foo.c: In function 'cal2':
/in/foo.c:11:2: error: 'c' undeclared (first use in this function)
{c[j]++;
^
/in/foo.c:11:2: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c: In function 'main':
/in/foo.c:25:30: error: 'j' undeclared (first use in this function)
else if(a[i]==0){cal1(n,a,b,j);cal2(n,a,c,j);}
^
/in/foo.c:26:15: error: expected ')' before ']' token
if(b[i]>=c[i]]){max[i]=b[i];}
^
/in/foo.c:26:15: error: expected statement before ']' token
/in/foo.c:26:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(b[i]>=c[i]]){max[i]=b[i];}
^~
/in/foo.c:26:16: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if(b[i]>=c[i]]){max[i]=b[i];}
^
/in/foo.c:26:16: error: expected statement before ')' token
/in/foo.c:27:2: error: 'else' without a previous 'if'
else{max[i]=c[i];}}
^~~~