islands.cpp: In function 'll dfs(ll)':
islands.cpp:20:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<V[p].size();i++){
~^~~~~~~~~~~~
islands.cpp: In function 'int main()':
islands.cpp:58:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=p;j<S.size();j++) K[j] = dfs(S[j]);
~^~~~~~~~~
islands.cpp:63:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=p;j<S.size();j++) D[j] = L[S[j]];
~^~~~~~~~~
islands.cpp:66:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=p+1;j<S.size();j++) D[j] = L[S[j-1]];
~^~~~~~~~~
islands.cpp:72:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=p+1;j<S.size();j++){
~^~~~~~~~~
islands.cpp:78:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=p+2;j<=S.size();j++){
~^~~~~~~~~~
islands.cpp:35:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("input.txt","r",stdin);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
islands.cpp:39:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &n);
~~~~~^~~~~~~~~~~~
islands.cpp:42:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld", P+i, L+i);
~~~~~^~~~~~~~~~~~~~~~~~~~~~