prog.c: In function 'main':
prog.c:4:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>' token
int m,n>0,s,i,j,sum1,sum2;
^
prog.c:5:11: error: 'n' undeclared (first use in this function)
int k[n];
^
prog.c:5:11: note: each undeclared identifier is reported only once for each function it appears in
prog.c:10:9: error: 'i' undeclared (first use in this function)
for(i=0,j=1;i<n,j<n;i+=2,j+=2)
^
prog.c:10:13: error: 'j' undeclared (first use in this function)
for(i=0,j=1;i<n,j<n;i+=2,j+=2)
^
prog.c:12:8: error: 'sum1' undeclared (first use in this function)
sum1+=k[i];
^~~~
prog.c:13:8: error: 'sum2' undeclared (first use in this function)
sum2+=k[j];
^~~~
prog.c:16:5: error: 's' undeclared (first use in this function)
s=sum2-sum1;
^