clo.cpp: In function 'int main()':
clo.cpp:30:13: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
30 | scanf("%d",&m);
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
clo.cpp:32:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
32 | scanf("%d%d%d",&a[i].cores,&a[i].clock,&a[i].price),
| ~^ ~~~~~~~~~~~
| | |
| int* long long int*
| %lld
clo.cpp:32:19: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
32 | scanf("%d%d%d",&a[i].cores,&a[i].clock,&a[i].price),
| ~^ ~~~~~~~~~~~
| | |
| int* long long int*
| %lld
clo.cpp:32:21: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
32 | scanf("%d%d%d",&a[i].cores,&a[i].clock,&a[i].price),
| ~^ ~~~~~~~~~~~
| | |
| int* long long int*
| %lld
clo.cpp:24:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
24 | scanf("%lld",&n);
| ~~~~~^~~~~~~~~~~
clo.cpp:26:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
26 | scanf("%lld%lld%lld",&a[i].cores,&a[i].clock,&a[i].price),
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clo.cpp:30:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
30 | scanf("%d",&m);
| ~~~~~^~~~~~~~~
clo.cpp:32:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
32 | scanf("%d%d%d",&a[i].cores,&a[i].clock,&a[i].price),
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~