/in/foo.c: In function 'main':
/in/foo.c:6:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
scanf("%d%d" ,year,&month);
^
/in/foo.c:24:2: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
else
^~~~
/in/foo.c:29:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
printf("%d \n",num);
^~~~~~
/in/foo.c:6:2: warning: 'year' is used uninitialized in this function [-Wuninitialized]
scanf("%d%d" ,year,&month);
^~~~~~~~~~~~~~~~~~~~~~~~~~