bridge.cpp: In function 'int main()':
bridge.cpp:13:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i, from, to) for(int i = from; i < to; i++)
bridge.cpp:26:7:
rep(i, 0, Q.size()) cout << Q[i] << " "; cout << endl;
~~~~~~~~~~~~~~
bridge.cpp:26:3: note: in expansion of macro 'rep'
rep(i, 0, Q.size()) cout << Q[i] << " "; cout << endl;
^~~
bridge.cpp:13:26: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
#define rep(i, from, to) for(int i = from; i < to; i++)
^
bridge.cpp:26:3: note: in expansion of macro 'rep'
rep(i, 0, Q.size()) cout << Q[i] << " "; cout << endl;
^~~
bridge.cpp:26:44: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
rep(i, 0, Q.size()) cout << Q[i] << " "; cout << endl;
^~~~
bridge.cpp:13:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i, from, to) for(int i = from; i < to; i++)
bridge.cpp:28:19:
if (k == 1) rep(i, 0, Q.size()) s += abs(Q[i]-Q[Q.size()/2]);
~~~~~~~~~~~~~~
bridge.cpp:28:15: note: in expansion of macro 'rep'
if (k == 1) rep(i, 0, Q.size()) s += abs(Q[i]-Q[Q.size()/2]);
^~~
bridge.cpp:13:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i, from, to) for(int i = from; i < to; i++)
bridge.cpp:34:9:
rep(i, 1, Q.size()){
~~~~~~~~~~~~~~
bridge.cpp:34:5: note: in expansion of macro 'rep'
rep(i, 1, Q.size()){
^~~
bridge.cpp:13:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i, from, to) for(int i = from; i < to; i++)
bridge.cpp:38:9:
rep(i,0,Q.size()) cout << d1[i] << " " << d2[i] << endl;
~~~~~~~~~~~~
bridge.cpp:38:5: note: in expansion of macro 'rep'
rep(i,0,Q.size()) cout << d1[i] << " " << d2[i] << endl;
^~~
bridge.cpp:13:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i, from, to) for(int i = from; i < to; i++)
bridge.cpp:40:9:
rep(i, 0, Q.size()-1){
~~~~~~~~~~~~~~~~
bridge.cpp:40:5: note: in expansion of macro 'rep'
rep(i, 0, Q.size()-1){
^~~