road_construction.cpp: In function 'int main()':
road_construction.cpp:11:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
11 | scanf("%d %d",&arr[i].first,&arr[i].second);
| ~^ ~~~~~~~~~~~~~
| | |
| int* long long int*
| %lld
road_construction.cpp:11:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
11 | scanf("%d %d",&arr[i].first,&arr[i].second);
| ~^ ~~~~~~~~~~~~~~
| | |
| int* long long int*
| %lld
road_construction.cpp:9:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | scanf("%d %d",&n,&k);
| ~~~~~^~~~~~~~~~~~~~~
road_construction.cpp:11:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | scanf("%d %d",&arr[i].first,&arr[i].second);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~