/in/foo.c: In function 'main':
/in/foo.c:5:17: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'float *' [-Wformat=]
5 | scanf("%d,%d,%d",&a,&b,&c);
| ~^ ~~
| | |
| int * float *
| %e
/in/foo.c:5:20: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'float *' [-Wformat=]
5 | scanf("%d,%d,%d",&a,&b,&c);
| ~^ ~~
| | |
| int * float *
| %e
/in/foo.c:5:23: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'float *' [-Wformat=]
5 | scanf("%d,%d,%d",&a,&b,&c);
| ~^ ~~
| | |
| int * float *
| %e
/in/foo.c:8:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'double' [-Wformat=]
8 | printf ("%d\n",perimeter);
| ~^ ~~~~~~~~~
| | |
| int double
| %f