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:83:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < q.size(); i++)
~~^~~~~~~~~~
friends.cpp:90: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:110: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:112:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (q.size() <= p && fl)
~~~~~~~~~^~~~
friends.cpp:119: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:155:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < q.size(); i++)
~~^~~~~~~~~~
friends.cpp:157:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < graph[q[i]].size(); j++)
~~^~~~~~~~~~~~~~~~~~~~
friends.cpp:168:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (q.size() <= p)
~~~~~~~~~^~~~
friends.cpp:173:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < q.size(); i++)
~~^~~~~~~~~~
friends.cpp:175: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:242:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < s.size(); j++)
~~^~~~~~~~~~
friends.cpp:254: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:263: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:266:13: note: in expansion of macro 'forn'
forn(j, ans[i].size())
^~~~
friends.cpp:285:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < s.size(); j++)
~~^~~~~~~~~~
friends.cpp:298:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (s.size() > 2 * p)
~~~~~~~~~^~~~~~~
friends.cpp:303:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (s.size() <= p)
~~~~~~~~~^~~~
friends.cpp:313:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i < r.size(); i++)
~~^~~~~~~~~~
friends.cpp:324:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i < s.size(); i++)
~~^~~~~~~~~~
friends.cpp:339:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (r.size() <= p && s.size() <= p)
~~~~~~~~~^~~~
friends.cpp:339: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:356: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:359: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:376: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:379:9: note: in expansion of macro 'forn'
forn(j, ans[i].size())
^~~~