foo.c: In function 'main':
foo.c:22:16: warning: left-hand operand of comma expression has no effect [-Wunused-value]
for(j=0;j<i-1,m==0;j++)
^
foo.c:23:17: warning: left-hand operand of comma expression has no effect [-Wunused-value]
for(k=j+1;k<i,m==0;k++)
^
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^~~~~~~~~~~~~~
foo.c:9:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&m);
^~~~~~~~~~~~~~