foo.c: In function 'main':
foo.c:16:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
16 | scanf("%d%d",&a1,&a2);
| ^~~~~~~~~~~~~~~~~~~~~
foo.c:17:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
17 | scanf("%d%d",&a3,&a4);
| ^~~~~~~~~~~~~~~~~~~~~
foo.c: In function 'p':
foo.c:7:9: warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized]
7 | return n;
| ^
foo.c: In function 'p2':
foo.c:11:3: warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized]
11 | m=a1*a2/p(a1,a2);
| ~^~~~~~~~~~~~~~~
foo.c: In function 'main':
foo.c:20:2: warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized]
20 | printf("%d %d",i/p(i,j),j/p(i,j));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:11:3: warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized]
11 | m=a1*a2/p(a1,a2);
| ~^~~~~~~~~~~~~~~
foo.c:3:9: note: 'n' was declared here
3 | { int m,n;
| ^
foo.c:11:3: warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized]
11 | m=a1*a2/p(a1,a2);
| ~^~~~~~~~~~~~~~~
foo.c:3:9: note: 'n' was declared here
3 | { int m,n;
| ^
foo.c:20:2: warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized]
20 | printf("%d %d",i/p(i,j),j/p(i,j));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:11:3: warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized]
11 | m=a1*a2/p(a1,a2);
| ~^~~~~~~~~~~~~~~
foo.c:3:9: note: 'n' was declared here
3 | { int m,n;
| ^
[Hydro](https://hydro.ac)提供评测服务