bosses.cpp: In function 'long long int dfs(long long int, long long int)':
bosses.cpp:18:18: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | for(int u=0;u<gr[node].size();u++)
| ~^~~~~~~~~~~~~~~~
bosses.cpp: In function 'int main()':
bosses.cpp:26:26: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class std::vector<long long int>' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
26 | memset(gr,0,sizeof gr);
| ^
In file included from /usr/include/c++/10/vector:67,
from /usr/include/c++/10/queue:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from bosses.cpp:1:
/usr/include/c++/10/bits/stl_vector.h:389:11: note: 'class std::vector<long long int>' declared here
389 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
bosses.cpp:45:30: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class std::vector<long long int>' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
45 | memset(gr,0,sizeof gr);
| ^
In file included from /usr/include/c++/10/vector:67,
from /usr/include/c++/10/queue:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from bosses.cpp:1:
/usr/include/c++/10/bits/stl_vector.h:389:11: note: 'class std::vector<long long int>' declared here
389 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
bosses.cpp:53:26: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
53 | for(int j=0;j<v[x].size();j++)
| ~^~~~~~~~~~~~
bosses.cpp:66:13: warning: unused variable 'c' [-Wunused-variable]
66 | int c=dfs(i,i);
| ^