friends.cpp: In function 'bool no(std::vector<long long int>&, long long int)':
friends.cpp:17:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define forn(i, n) for (int (i) = 0; (i) != (n); (i)++)
~~~~^~~~~~
friends.cpp:55:5: note: in expansion of macro 'forn'
forn(i, v.size()) if (v[i] == x) return 0;
^~~~
friends.cpp: In function 'long long int dfs(long long int, long long int, long long int, long long int)':
friends.cpp:81:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < q.size(); i++)
~~^~~~~~~~~~
friends.cpp:88:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < q.size(); j++) if (q[j] == u) t = 1;
~~^~~~~~~~~~
friends.cpp:108:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < q.size(); i++) if (q[i] == End) fl = 1;
~~^~~~~~~~~~
friends.cpp:109:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (q.size() <= p && fl)
~~~~~~~~~^~~~
friends.cpp:116:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (q.size() >= p)
~~~~~~~~~^~~~
friends.cpp: In function 'void opa(long long int)':
friends.cpp:152:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < q.size(); i++)
~~^~~~~~~~~~
friends.cpp:154:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < graph[q[i]].size(); j++)
~~^~~~~~~~~~~~~~~~~~~~
friends.cpp:165:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (q.size() <= p)
~~~~~~~~~^~~~
friends.cpp:167:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < ids.size(); i++)
~~^~~~~~~~~~~~
friends.cpp:179:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < s.size(); i++)
~~^~~~~~~~~~
friends.cpp:197:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < q.size(); i++)
~~^~~~~~~~~~
friends.cpp:199:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < q.size(); j++)
~~^~~~~~~~~~
friends.cpp: In function 'int main()':
friends.cpp:262:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < s.size(); j++)
~~^~~~~~~~~~
friends.cpp:274:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (s.size() > p)
~~~~~~~~~^~~
friends.cpp:17:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define forn(i, n) for (int (i) = 0; (i) != (n); (i)++)
~~~~^~~~~~
friends.cpp:283:9: note: in expansion of macro 'forn'
forn(i, ans.size())
^~~~
friends.cpp:17:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define forn(i, n) for (int (i) = 0; (i) != (n); (i)++)
~~~~^~~~~~
friends.cpp:286:13: note: in expansion of macro 'forn'
forn(j, ans[i].size())
^~~~
friends.cpp:305:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < s.size(); j++)
~~^~~~~~~~~~
friends.cpp:318:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (s.size() > 2 * p)
~~~~~~~~~^~~~~~~
friends.cpp:323:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (s.size() <= p)
~~~~~~~~~^~~~
friends.cpp:333:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i < r.size(); i++)
~~^~~~~~~~~~
friends.cpp:344:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i < s.size(); i++)
~~^~~~~~~~~~
friends.cpp:359:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (r.size() <= p && s.size() <= p)
~~~~~~~~~^~~~
friends.cpp:359:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (r.size() <= p && s.size() <= p)
~~~~~~~~~^~~~
friends.cpp:17:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define forn(i, n) for (int (i) = 0; (i) != (n); (i)++)
~~~~^~~~~~
friends.cpp:376:9: note: in expansion of macro 'forn'
forn(i, ans.size())
^~~~
friends.cpp:17:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define forn(i, n) for (int (i) = 0; (i) != (n); (i)++)
~~~~^~~~~~
friends.cpp:379:13: note: in expansion of macro 'forn'
forn(j, ans[i].size())
^~~~
friends.cpp:17:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define forn(i, n) for (int (i) = 0; (i) != (n); (i)++)
~~~~^~~~~~
friends.cpp:396:5: note: in expansion of macro 'forn'
forn(i, ans.size())
^~~~
friends.cpp:17:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define forn(i, n) for (int (i) = 0; (i) != (n); (i)++)
~~~~^~~~~~
friends.cpp:399:9: note: in expansion of macro 'forn'
forn(j, ans[i].size())
^~~~