/in/foo.c: In function 'readstr':
/in/foo.c:6:9: error: 's' redeclared as different kind of symbol
int s[100];
^
/in/foo.c:4:19: note: previous definition of 's' was here
int readstr(char* s){
^
/in/foo.c:6:9: warning: variable 's' set but not used [-Wunused-but-set-variable]
int s[100];
^
/in/foo.c: In function 'main':
/in/foo.c:15:11: warning: implicit declaration of function 'min' [-Wimplicit-function-declaration]
if(k==1)l[min(x,y)]++,r[max(x,y)]++;
^~~
/in/foo.c:15:25: warning: implicit declaration of function 'max' [-Wimplicit-function-declaration]
if(k==1)l[min(x,y)]++,r[max(x,y)]++;
^~~