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:62: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:65: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:71:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=p+1;j<S.size();j++){
~^~~~~~~~~
islands.cpp:76:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=p;j<S.size();j++){
~^~~~~~~~~
islands.cpp:81:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=p+1;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);
~~~~~^~~~~~~~~~~~~~~~~~~~~~