friends.cpp: In function 'int main()':
friends.cpp:30:9: warning: statement has no effect [-Wunused-value]
30 | for(i; i<n; i++) if(z<x.size() and x[z]==s[i])X+=s[i], z++;
| ^
friends.cpp:30:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
30 | for(i; i<n; i++) if(z<x.size() and x[z]==s[i])X+=s[i], z++;
| ~^~~~~~~~~
friends.cpp:32:9: warning: statement has no effect [-Wunused-value]
32 | for(i; i <= n/2; i++) if(z<y.size() and y[z]==s[i])Y+=s[i],z++;
| ^
friends.cpp:32:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | for(i; i <= n/2; i++) if(z<y.size() and y[z]==s[i])Y+=s[i],z++;
| ~^~~~~~~~~