clo.cpp: In function 'int main()':
clo.cpp:47:14: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'int*' [-Wformat=]
47 | scanf("%ld", &m);
| ~~^ ~~
| | |
| | int*
| long int*
| %d
clo.cpp:50:18: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'int*' [-Wformat=]
50 | scanf("%ld %ld %ld", &t[i].c, &t[i].f, &t[i].v);
| ~~^ ~~~~~~~
| | |
| long int* int*
| %d
clo.cpp:50:22: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'int*' [-Wformat=]
50 | scanf("%ld %ld %ld", &t[i].c, &t[i].f, &t[i].v);
| ~~^ ~~~~~~~
| | |
| long int* int*
| %d
clo.cpp:50:26: warning: format '%ld' expects argument of type 'long int*', but argument 4 has type 'int*' [-Wformat=]
50 | scanf("%ld %ld %ld", &t[i].c, &t[i].f, &t[i].v);
| ~~^ ~~~~~~~
| | |
| long int* int*
| %d
clo.cpp:54:14: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'int*' [-Wformat=]
54 | scanf("%ld", &n);
| ~~^ ~~
| | |
| | int*
| long int*
| %d
clo.cpp:57:18: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'int*' [-Wformat=]
57 | scanf("%ld %ld %ld", &d[i].c, &d[i].f, &d[i].v);
| ~~^ ~~~~~~~
| | |
| long int* int*
| %d
clo.cpp:57:22: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'int*' [-Wformat=]
57 | scanf("%ld %ld %ld", &d[i].c, &d[i].f, &d[i].v);
| ~~^ ~~~~~~~
| | |
| long int* int*
| %d
clo.cpp:57:26: warning: format '%ld' expects argument of type 'long int*', but argument 4 has type 'int*' [-Wformat=]
57 | scanf("%ld %ld %ld", &d[i].c, &d[i].f, &d[i].v);
| ~~^ ~~~~~~~
| | |
| long int* int*
| %d
clo.cpp:47:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
47 | scanf("%ld", &m);
| ~~~~~^~~~~~~~~~~
clo.cpp:50:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
50 | scanf("%ld %ld %ld", &t[i].c, &t[i].f, &t[i].v);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clo.cpp:54:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
54 | scanf("%ld", &n);
| ~~~~~^~~~~~~~~~~
clo.cpp:57:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
57 | scanf("%ld %ld %ld", &d[i].c, &d[i].f, &d[i].v);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~