island.cpp: In function 'bool dfs(int, int)':
island.cpp:21:1: warning: no return statement in function returning non-void [-Wreturn-type]
21 | }
| ^
island.cpp: In function 'int main()':
island.cpp:24:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
24 | scanf("%d %d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~~
island.cpp:25:34: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | for(int i=1; i<=n; i++) scanf("%lld", &arr[i]);
| ~~~~~^~~~~~~~~~~~~~~~~
island.cpp:28:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
28 | scanf("%d %d", &x, &y);
| ~~~~~^~~~~~~~~~~~~~~~~