#include<bits/stdc++.h>
#define ll long long
#define INF 1e18
#define MOD 1000000007
#define nline “\n”
using namespace std;
int main(){
int t ;cin>>t;
while(t–){
fflush(stdin);
string s;
cin>>s;
int n=(int)s.length();
bool d=0;
if(s[0]!=’<’ || s[1]!=’/’ || s[n-1]!=’>’){
cout<<“Error”<<nline;
continue;
}
for(int i=2;i<s.length()-1;++i){
if( (s[i]<='9' && s[i]>='0') || ( s[i]<='z' && s[i]>='a') ){
d=true;
}else{
d=false;
}
if(!d){
cout<<"Error"<<nline;
break;
}
}
if(d){
cout<<"Success"<<nline;
}
}
}```
You missed this testcase when the body of html tag is empty :-
1
</>
Your O/P:-
Corret O/P :- Error