bubblesort2.cpp: In lambda function:
bubblesort2.cpp:21:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for(;index<ft.size();index+=(index&(-index)))
| ~~~~~^~~~~~~~~~
bubblesort2.cpp: In function 'std::vector<int> countScans(std::vector<int>, std::vector<int>, std::vector<int>)':
bubblesort2.cpp:30:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
30 | for(int i=0;i<x.size();i++){
| ~^~~~~~~~~
bubblesort2.cpp:33:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | for(int j=0;j<a.size();j++){
| ~^~~~~~~~~
bubblesort2.cpp:37:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | for(int j=0;j<a.size();j++) update(a[j],-1);
| ~^~~~~~~~~
bubblesort2.cpp:32:7: warning: unused variable 'cnt' [-Wunused-variable]
32 | int cnt=0;
| ^~~