easy.cpp: In function 'void solve()':
easy.cpp:53:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i=0;i<lis[vec[0]].size();i++) cur.push_back(lis[vec[0]][i]);
~^~~~~~~~~~~~~~~~~~~
easy.cpp:54:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i=1;i<vec.size();i++) {
~^~~~~~~~~~~
easy.cpp:58:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(a<cur.size()&&b<lis[vec[i]].size()) {
~^~~~~~~~~~~
easy.cpp:58:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(a<cur.size()&&b<lis[vec[i]].size()) {
~^~~~~~~~~~~~~~~~~~~
easy.cpp: In function 'int main()':
easy.cpp:79:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
~~~~~^~~~~~~~~~~~~~
easy.cpp:82:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&arr[i]); arr[i]--;
~~~~~^~~~~~~~~~~~~~
easy.cpp:89:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&c);
~~~~~^~~~~~~~~
easy.cpp:93:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a); --a;
~~~~~^~~~~~~~~