My issue
i solved but when i going to submitted there shows runtime error
include <bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
for(int i=1;i<=t;i++)
{
int x;
cin>>x;
string c[3]={“NORMAL”,“HUGE”,“SMALL”};
if(x<=3)
{
cout<<c<<“\n”;
}
else
{
cout<<c[x%3]<<“\n”;
}
}
return 0;
}
My code
#include <bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
for(int i=1;i<=t;i++)
{
int x;
cin>>x;
string c[3]={"NORMAL","HUGE","SMALL"};
if(x<=3)
{
cout<<c[x]<<"\n";
}
else
{
cout<<c[x%3]<<"\n";
}
}
return 0;
}
Problem Link: Mario and Transformation Practice Coding Problem - CodeChef