drvca.cpp: In function 'bool check(int, int)':
drvca.cpp:36:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1;i<v.size();i++)
~^~~~~~~~~
drvca.cpp: In function 'void ispisi()':
drvca.cpp:62:29: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
printf("%d\n",gr1.size());
~~~~~~~~~~^
drvca.cpp:63:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<gr1.size();i++) printf("%d ",gr1[i]);
~^~~~~~~~~~~
drvca.cpp:67:29: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
printf("%d\n",gr2.size());
~~~~~~~~~~^
drvca.cpp:68:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<gr2.size();i++) printf("%d ",gr2[i]);
~^~~~~~~~~~~
drvca.cpp: In function 'int main()':
drvca.cpp:73:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
drvca.cpp:74:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=0;i<n;i++) scanf("%d",&a[i]);
~~~~~^~~~~~~~~~~~