island.cpp: In function 'int main()':
island.cpp:50:5: error: 'suff' was not declared in this scope
50 | suff[n + 1] = n + 1;
| ^~~~
island.cpp:58:5: error: 'dp' was not declared in this scope
58 | dp[1] = true;
| ^~
island.cpp:38:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | scanf("%d%d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~
island.cpp:40:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
40 | scanf("%d", s + i);
| ~~~~~^~~~~~~~~~~~~
island.cpp:45:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
45 | scanf("%d%d", &u, &v);
| ~~~~~^~~~~~~~~~~~~~~~