foo.c: In function 'main':
foo.c:7:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
scanf("%d%d%d\n%d%d%d", y1, m1, d1, y2, m2, d2);
~^
foo.c:7:12: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
scanf("%d%d%d\n%d%d%d", y1, m1, d1, y2, m2, d2);
~^
foo.c:7:14: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'int' [-Wformat=]
scanf("%d%d%d\n%d%d%d", y1, m1, d1, y2, m2, d2);
~^
foo.c:7:18: warning: format '%d' expects argument of type 'int *', but argument 5 has type 'int' [-Wformat=]
scanf("%d%d%d\n%d%d%d", y1, m1, d1, y2, m2, d2);
~^
foo.c:7:20: warning: format '%d' expects argument of type 'int *', but argument 6 has type 'int' [-Wformat=]
scanf("%d%d%d\n%d%d%d", y1, m1, d1, y2, m2, d2);
~^
foo.c:7:22: warning: format '%d' expects argument of type 'int *', but argument 7 has type 'int' [-Wformat=]
scanf("%d%d%d\n%d%d%d", y1, m1, d1, y2, m2, d2);
~^
foo.c:4:6: warning: unused variable 'd' [-Wunused-variable]
int d;
^
foo.c:7:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d\n%d%d%d", y1, m1, d1, y2, m2, d2);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:7:2: warning: 'y1' is used uninitialized in this function [-Wuninitialized]
scanf("%d%d%d\n%d%d%d", y1, m1, d1, y2, m2, d2);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:7:2: warning: 'm1' is used uninitialized in this function [-Wuninitialized]
foo.c:7:2: warning: 'd1' is used uninitialized in this function [-Wuninitialized]
foo.c:7:2: warning: 'y2' is used uninitialized in this function [-Wuninitialized]
foo.c:7:2: warning: 'm2' is used uninitialized in this function [-Wuninitialized]
foo.c:7:2: warning: 'd2' is used uninitialized in this function [-Wuninitialized]
[Hydro](https://hydro.ac)提供评测服务