mergers.cpp: In function 'int F(int, int, int)':
mergers.cpp:23:1: warning: no return statement in function returning non-void [-Wreturn-type]
23 | }
| ^
mergers.cpp: In function 'int F2(int, int, int)':
mergers.cpp:38:1: warning: no return statement in function returning non-void [-Wreturn-type]
38 | }
| ^
mergers.cpp: In function 'int main()':
mergers.cpp:41:19: warning: unused variable 'con' [-Wunused-variable]
41 | int N,M,i,x,y,con=0,ok=1;
| ^~~
mergers.cpp:42:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
42 | scanf("%d %d",&N,&M);
| ~~~~~^~~~~~~~~~~~~~~
mergers.cpp:45:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
45 | scanf("%d %d",&x,&y);
| ~~~~~^~~~~~~~~~~~~~~
mergers.cpp:49:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
49 | for(i=1;i<=N;i++) scanf("%d",&color[i]);
| ~~~~~^~~~~~~~~~~~~~~~