carnival.cpp: In function 'int query(int, int, int)':
carnival.cpp:20:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (z) cout << z; cout << "\n";
^~
carnival.cpp:20:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if (z) cout << z; cout << "\n";
^~~~
carnival.cpp: In function 'int main()':
carnival.cpp:29:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (v.size() != query(0, v.size()-1)) v.pop_back();
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
carnival.cpp:5:22: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
#define FOR(i, a, b) for(int i = (int)a; i <= (int)b; i++)
^
carnival.cpp:43:2: note: in expansion of macro 'FOR'
FOR(i, 0, n) cout << col[i] << " "; cout << "\n";
^~~
carnival.cpp:43:38: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
FOR(i, 0, n) cout << col[i] << " "; cout << "\n";
^~~~