politicaldevelopment.cpp: In function 'int main()':
politicaldevelopment.cpp:42:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
42 | for(int j=0;j<deg-1;j++) id[g[i][j]]=-1; id[i]=-1;
| ^~~
politicaldevelopment.cpp:42:50: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
42 | for(int j=0;j<deg-1;j++) id[g[i][j]]=-1; id[i]=-1;
| ^~
politicaldevelopment.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);
| ~~~~~^~~~~~~~~~~~~~
politicaldevelopment.cpp:12:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | scanf("%d",&d);
| ~~~~~^~~~~~~~~
politicaldevelopment.cpp:15:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | scanf("%d",&x);
| ~~~~~^~~~~~~~~