diversity.cpp:7:2: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
7 | main (){
| ^~~~
diversity.cpp: In function 'int main()':
diversity.cpp:19:20: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
19 | for(int i =1; i < v.size(); ++i){
| ~~^~~~~~~~~~
diversity.cpp:25:20: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | for(int i =1; i < v.size(); ++i){
| ~~^~~~~~~~~~
diversity.cpp:10:8: warning: unused variable 'l' [-Wunused-variable]
10 | int l , r;
| ^
diversity.cpp:10:12: warning: unused variable 'r' [-Wunused-variable]
10 | int l , r;
| ^