For this Question: Given a Prefix expression, convert it into a Infix expression.

Infix : An expression is called the Infix expression if the operator appears in between the operands in the expression. Simply of the form (operand1 operator operand2).
Example : (M+N) * (O-P)

Prefix : An expression is called the prefix expression if the operator appears in the expression before the operands. Simply of the form (operator operand1 operand2).
Example : *+MN-OP (Infix : (M+N) * (O-P) )Input contains a single string of prefix expression.

Constraints:
1 < = string length < = 20

Note :- String will only contain uppercase english letters and maths operand :- '/', '*', '+', '-'.

Print the Infix expression.Sample Input
*-A/BC-/AKL

Sample Output:
((A-(B/C))*((A/K)-L))

Sample Input
+AB

Sample Output
A+B, I have written this Solution Code: #include <iostream> 
#include <stack> 
using namespace std; 
  
// function to check if character is operator or not 
bool isOperator(char x) { 
  switch (x) { 
  case '+': 
  case '-': 
  case '/': 
  case '*': 
    return true; 
  } 
  return false; 
} 
  
// Convert prefix to Infix expression 
string preToInfix(string pre_exp) { 
  stack<string> s; 
  
  // length of expression 
  int length = pre_exp.size(); 
  
  // reading from right to left 
  for (int i = length - 1; i >= 0; i--) { 
  
    // check if symbol is operator 
    if (isOperator(pre_exp[i])) { 
  
      // pop two operands from stack 
      string op1 = s.top();   s.pop(); 
      string op2 = s.top();   s.pop(); 
  
      // concat the operands and operator 
      string temp = "(" + op1 + pre_exp[i] + op2 + ")"; 
  
      // Push string temp back to stack 
      s.push(temp); 
    } 
  
    // if symbol is an operand 
    else { 
  
      // push the operand to the stack 
      s.push(string(1, pre_exp[i])); 
    } 
  } 
  
  // Stack now contains the Infix expression 
  return s.top(); 
} 
  
// Driver Code 
int main() { 
  string pre_exp ;
  cin>>pre_exp;
  cout  << preToInfix(pre_exp); 
  return 0; 
} , In this Programming Language: C++, Now tell me if this Code is compilable or not?