123456
int t; string a; cin>>t; getline(cin,a); int len=a.length(); cout<<a<<" "<<len;
hello hi 9
int l=strlen(stringname);
#include<string.h>
5 hello hi
#include <cstring>