title: Area Of The Circle That Has A Square And A Circle Inscribed In It
signature: function area_of_the_circle_that_has_a_square_and_a_circle_inscribed_in_it(a)
test_code: 
  
  -- SOLUTION CODE
  -- ============================================
  PLACEHOLDER_CODE_BODY
  
  -- TESTING CODE 
  -- ============================================
  function isCorrect(actual, expected)
      if type(expected) ~= type(actual) then
          return false
      end
      
      if type(expected) == 'table' then
          for k,v_expected in pairs(expected) do
              
              if actual[k] == nil then
                  return false
              end
              local v_actual = actual[k]
              if not isCorrect(v_actual, v_expected) then
                  return false
              end
              actual[k]=nil
          end
      
          if next(actual) then 
              return false
          end
          return true
      else
          return actual == expected
      end
  end
  
  function validateSolution(actual, expected)
      return math.abs(actual - expected) < 1e-09
  end
  
  function driver(a, expected)
      local exec_result;
      local status, error_msg = pcall(function () 
          exec_result=PLACEHOLDER_FN_NAME(a) 
      end)
      if status then
          if validateSolution(exec_result,expected) then
              return "PASSED"
          end
          return "FAILED"
      else
          return string.format("ERROR=%s",string.gsub(error_msg,".*:[%d]+: ",""))
      end
  end
      
  function main()
      result = driver(77, 4656.625710783471)
      print(string.format("TEST-0...%s",result))
  
      result = driver(18, 254.46900494077323)
      print(string.format("TEST-1...%s",result))
  
      result = driver(83, 5410.607947645021)
      print(string.format("TEST-2...%s",result))
  
      result = driver(39, 1194.5906065275187)
      print(string.format("TEST-3...%s",result))
  
      result = driver(68, 3631.6811075498013)
      print(string.format("TEST-4...%s",result))
  
      result = driver(28, 615.7521601035994)
      print(string.format("TEST-5...%s",result))
  
      result = driver(71, 3959.192141686537)
      print(string.format("TEST-6...%s",result))
  
      result = driver(14, 153.93804002589985)
      print(string.format("TEST-7...%s",result))
  
      result = driver(21, 346.36059005827474)
      print(string.format("TEST-8...%s",result))
  
      result = driver(73, 4185.386812745001)
      print(string.format("TEST-9...%s",result))
  
  end
  
  main()
source_py: def area_of_the_circle_that_has_a_square_and_a_circle_inscribed_in_it(a):
      area = (((math.pi * a) * a) / 4)
      return area
source_cpp: float area_of_the_circle_that_has_a_square_and_a_circle_inscribed_in_it(int a) {
    float area = ( M_PI * a * a ) / 4.0;
    return area;
  }