growing.cpp: In function 'int main()':
growing.cpp:34:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0; i<V.size();)
~^~~~~~~~~
growing.cpp:38:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(; i<V.size() && V[i].first==p; i++) T.push_back(V[i].second);
~^~~~~~~~~
growing.cpp:23:9: warning: unused variable 'j' [-Wunused-variable]
int i, j;
^
growing.cpp:24:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
~~~~~^~~~~~~~~~
growing.cpp:25:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1; i<=N; i++) scanf("%d", &A[i]);
~~~~~^~~~~~~~~~~~~