#include <iostream>
#include <string>
#include<algorithm>
#define m 10000000
using namespace std;
int a[50];
int main()
{
string s1="abcd",s2="abcd";
// cout<<s1.substr(1,2) ;
string ::iterator it;
it=s1.end(); it=it-3;
cout<<*it;
}
2023-01-07 14:29:56
#include <iostream>
#include <string>
#include<algorithm>
#define m 10000000
using namespace std;
int a[50];
int main()
{
string s1="abcd",s2="abcd";
// cout<<s1.substr(1,2) ;
string ::iterator it;
it=s1.end(); it=it-3;
cout<<*it;
}