prog.c: In function 'main':
prog.c:5:19: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
while(scanf("%d %d",m,d)!=EOF)
^
prog.c:5:22: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
while(scanf("%d %d",m,d)!=EOF)
^