carnival.cpp: In function 'int ask(std::vector<int>)':
carnival.cpp:10:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < T.size(); i++) cout << " " << T[i]; cout << endl;
~~^~~~~~~~~~
carnival.cpp:10:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (int i = 0; i < T.size(); i++) cout << " " << T[i]; cout << endl;
^~~
carnival.cpp:10:58: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for (int i = 0; i < T.size(); i++) cout << " " << T[i]; cout << endl;
^~~~
carnival.cpp: In function 'std::pair<int, int> solve(std::vector<int>)':
carnival.cpp:21:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (F != T.size()) { minx = min(minx, M1); R1 = M1; }
~~^~~~~~~~~~~
carnival.cpp:32:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (F != T.size()) { maxn = max(maxn, M2); L2 = M2; }
~~^~~~~~~~~~~
carnival.cpp: In function 'int main()':
carnival.cpp:55:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < vec.size(); i++) {
~~^~~~~~~~~~~~