carnival.cpp: In function 'int Ask(std::vector<int>)':
carnival.cpp:10:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
10 | for(auto i:a) cout<<i<<" ";cout<<endl;
| ^~~
carnival.cpp:10:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
10 | for(auto i:a) cout<<i<<" ";cout<<endl;
| ^~~~
carnival.cpp: In function 'int main()':
carnival.cpp:18:7: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | if(x!=b.size()) b.pop_back();
| ~^~~~~~~~~~
carnival.cpp:21:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for(int i=0;i<b.size();i++) res[b[i]]=i+1;
| ~^~~~~~~~~
carnival.cpp:24:8: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | if(lb<b.size()&&b[lb]==i) continue;
| ~~^~~~~~~~~
carnival.cpp:27:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
27 | int mid=l+r>>1;
| ~^~
carnival.cpp:32:8: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | if(x==temp.size()){l=mid+1;}
| ~^~~~~~~~~~~~~
carnival.cpp:37:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
37 | for(int i=1;i<=n;i++) cout<<res[i]<<" ";cout<<endl;
| ^~~
carnival.cpp:37:45: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
37 | for(int i=1;i<=n;i++) cout<<res[i]<<" ";cout<<endl;
| ^~~~