lun.cpp:8:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
8 | main()
| ^~~~
lun.cpp: In function 'int main()':
lun.cpp:19:18: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
19 | for(int i=0;i<s.size();i++)
| ~^~~~~~~~~
lun.cpp:26:22: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | for(int i=1;i<s.size();i++){
| ~^~~~~~~~~
lun.cpp:23:5: warning: 'index' may be used uninitialized in this function [-Wmaybe-uninitialized]
23 | if(index==0){
| ^~