foo.c: In function 'main':
foo.c:29:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(read[0]==2) s[i]=4;break;
^~
foo.c:29:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if(read[0]==2) s[i]=4;break;
^~~~~
foo.c:32:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(read[0]==2) s[i]=5;break;
^~
foo.c:32:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if(read[0]==2) s[i]=5;break;
^~~~~
foo.c:35:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(read[0]==2) s[i]=2;break;
^~
foo.c:35:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if(read[0]==2) s[i]=2;break;
^~~~~
foo.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&N,&M);
^~~~~~~~~~~~~~~~~~~
foo.c:15:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&read[i]);
^~~~~~~~~~~~~~~~~~~~
foo.c:23:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&read[i]);
^~~~~~~~~~~~~~~~~~~~
foo.c:9:7: warning: 's' may be used uninitialized in this function [-Wmaybe-uninitialized]
int* s;
^
foo.c:48:5: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
m++;
~^~
foo.c:46:5: warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized]
n++;
~^~