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: In function 'int main()':
friends.cpp:220:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < s.size(); j++)
~~^~~~~~~~~~
friends.cpp:232: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:241: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:244:13: note: in expansion of macro 'forn'
forn(j, ans[i].size())
^~~~
friends.cpp:263:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < s.size(); j++)
~~^~~~~~~~~~
friends.cpp:276:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (s.size() > 2 * p)
~~~~~~~~~^~~~~~~
friends.cpp:281:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (s.size() <= p)
~~~~~~~~~^~~~
friends.cpp:291:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i < r.size(); i++)
~~^~~~~~~~~~
friends.cpp:302:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i < s.size(); i++)
~~^~~~~~~~~~
friends.cpp:317:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (r.size() <= p && s.size() <= p)
~~~~~~~~~^~~~
friends.cpp:317: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:334: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:337:13: note: in expansion of macro 'forn'
forn(j, ans[i].size())
^~~~