island.cpp: In function 'bool cmp(std::pair<int, int>, std::pair<int, int>)':
island.cpp:31:10: error: expected primary-expression before 'return'
31 | return return a[l.sc]<a[r.sc];;
| ^~~~~~
island.cpp:31:9: error: expected ';' before 'return'
31 | return return a[l.sc]<a[r.sc];;
| ^~~~~~~
| ;
island.cpp: In function 'int main()':
island.cpp:52:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
52 | scanf("%d%d",&n,&m);
| ~~~~~^~~~~~~~~~~~~~
island.cpp:54:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
54 | scanf("%d",&a[i]);
| ~~~~~^~~~~~~~~~~~
island.cpp:61:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
61 | scanf("%d%d",&edge[i].fr,&edge[i].sc);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~