train.cpp: In function 'std::vector<int> who_wins(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
train.cpp:20:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i,x) for(int i=0;i<x;i++)
train.cpp:31:6:
rep(i,r.size()) cntt += r[i];
~~~~~~~~~~
train.cpp:31:2: note: in expansion of macro 'rep'
rep(i,r.size()) cntt += r[i];
^~~
train.cpp:20:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i,x) for(int i=0;i<x;i++)
train.cpp:34:6:
rep(i,r.size()) if(r[i]) V = i;
~~~~~~~~~~
train.cpp:34:2: note: in expansion of macro 'rep'
rep(i,r.size()) if(r[i]) V = i;
^~~
train.cpp:20:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i,x) for(int i=0;i<x;i++)
train.cpp:35:6:
rep(i,u.size()){
~~~~~~~~~~
train.cpp:35:2: note: in expansion of macro 'rep'
rep(i,u.size()){
^~~
train.cpp:20:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i,x) for(int i=0;i<x;i++)
train.cpp:41:6:
rep(i,redge[V].size()){
~~~~~~~~~~~~~~~~~
train.cpp:41:2: note: in expansion of macro 'rep'
rep(i,redge[V].size()){
^~~
train.cpp:53:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(used[q]) continue; used[q] = 1;
^~
train.cpp:53:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if(used[q]) continue; used[q] = 1;
^~~~
train.cpp:20:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i,x) for(int i=0;i<x;i++)
train.cpp:54:7:
rep(i,redge[q].size()){
~~~~~~~~~~~~~~~~~
train.cpp:54:3: note: in expansion of macro 'rep'
rep(i,redge[q].size()){
^~~
train.cpp:20:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i,x) for(int i=0;i<x;i++)
train.cpp:64:23:
vector<int>ret; rep(i,a.size()) ret.pb(0);
~~~~~~~~~~
train.cpp:64:19: note: in expansion of macro 'rep'
vector<int>ret; rep(i,a.size()) ret.pb(0);
^~~
train.cpp:20:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i,x) for(int i=0;i<x;i++)
train.cpp:68:23:
vector<int>ret; rep(i,a.size()) if(!used[i]) ret.pb(0);else ret.pb(1);
~~~~~~~~~~
train.cpp:68:19: note: in expansion of macro 'rep'
vector<int>ret; rep(i,a.size()) if(!used[i]) ret.pb(0);else ret.pb(1);
^~~
train.cpp:40:25: warning: 'V' may be used uninitialized in this function [-Wmaybe-uninitialized]
queue<int>que; used[V] = 1;
~~~~~~~~^~~