For this Question: There are English words that you want to translate them into pseudo-Latin. To change an English word into pseudo-Latin word, you simply change the end of the English word like the following table. 
English      pseudo-Latin
-a               -as
-i, -y           -ios
-l                -les
-n, -ne       -anes
-o               -os
-r                -res
-t                -tas
-u               -us
-v               -ves
-w              -was 
If a word is not ended as it stated in the table, put ‘-us’ at the end of the word. For example, a word “cup” is translated into “cupus” and a word “water” is translated into “wateres”.

Write a program that translates English words into pseudo-Latin words.The input starts with a line containing an integer, n, where n is the number of English words.
The next n lines contain n English words.
Words use only lowercase alphabet letters and each word contains at least 3 and at most 30 letters.

Constraints
1 <= n <= 20For an English word, print exactly one pseudo-Latin word in a new line.Sample Input
2
toy
engine

Sample Output
toios
engianes 

Sample Input
3
cup
water
cappuccino 

Sample Output
cupus
wateres
cappuccinos, I have written this Solution Code: #include<bits/stdc++.h>
using namespace std;
int main()
{
//	string arr[12][2] = {
//		{"a","as"},
//		{"i","ios"},
//		{"l","les"},
//		{"n","anes"},
//		{"ne","anes"},
//		{"o","os"},
//		{"r","res"},
//		{"t","tas"},
//		{"u","us"},
//		{"v","ves"},
//		{"w","was"},
//		{"y","ios"}
//	}
//	;
	int t;
	cin>>t;
	while(t--)
	{
		string str;
		cin>>str;
		if(str[str.length()-1]=='e' && str[str.length()-2]=='n')
		{
			str = str.substr(0,str.length()-2);
			str += "anes";	
		}
		else if(str[str.length()-1]=='a')
		{
			str = str.substr(0,str.length()-1);
			str += "as";
		}
		else if(str[str.length()-1]=='i')
		{
			str = str.substr(0,str.length()-1);
			str += "ios";
		}
		else if(str[str.length()-1]=='l')
		{
			str = str.substr(0,str.length()-1);
			str += "les";
		}
		else if(str[str.length()-1]=='n')
		{
			str = str.substr(0,str.length()-1);
			str += "anes";
		}
		else if(str[str.length()-1]=='o')
		{
			str = str.substr(0,str.length()-1);
			str += "os";
		}
		else if(str[str.length()-1]=='r')
		{
			str = str.substr(0,str.length()-1);
			str += "res";
		}
		else if(str[str.length()-1]=='t')
		{
			str = str.substr(0,str.length()-1);
			str += "tas";
		}
		else if(str[str.length()-1]=='u')
		{
			str = str.substr(0,str.length()-1);
			str += "us";
		}
		else if(str[str.length()-1]=='v')
		{
			str = str.substr(0,str.length()-1);
			str += "ves";
		}
		else if(str[str.length()-1]=='w')
		{
			str = str.substr(0,str.length()-1);
			str += "was";
		}
		else if(str[str.length()-1]=='y')
		{
			str = str.substr(0,str.length()-1);
			str += "ios";
		}
		else
		{
			str += "us";
		}
		cout<<str<<endl;
	}
	return 0;
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?