politicaldevelopment.cpp: In function 'int main()':
politicaldevelopment.cpp:28:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
28 | scanf("%d %d",&n,&k);
| ~~~~~^~~~~~~~~~~~~~~
politicaldevelopment.cpp:32:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
32 | scanf("%d",&d);
| ~~~~~^~~~~~~~~
politicaldevelopment.cpp:36:9: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | scanf("%d",&x);
| ~~~~~^~~~~~~~~