title: Area Of The Circle That Has A Square And A Circle Inscribed In It
signature: double areaOfTheCircleThatHasASquareAndACircleInscribedInIt(int a) {
test_code: #include <algorithm>
  #include <assert.h>
  #include <cstdlib>
  #include <iostream>
  #include <map>
  #include <set>
  #include <string>
  #include <tuple> 
  #include <unordered_map>
  #include <vector>
  #include <math.h>
  #include <cmath>
  #include <bits/stdc++.h>
  #include <numeric>
  #include <functional>
  
  using namespace std;
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  bool validateSolution(double actual, double expected){
      return abs(actual - expected) < 1e-09;
  }
  
  string driver(int a, double expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(a), expected)){
              return "PASSED";
          }
          return "FAILED";
      }
      catch (const std::overflow_error& exception_obj)
      {
          return typeid(exception_obj).name();
      }
      catch (const std::runtime_error& exception_obj)
      {
          return typeid(exception_obj).name();
      }
      catch (const std::exception& exception_obj)
      {
          return typeid(exception_obj).name();
      }
      catch (...)
      {
          return "UNK_ERROR";
      }
  }
  
  int main() {
      string result = "";
  
      result = driver(77, 4656.625710783471); 
      cout << "TEST-" << 0 << "..."
           <<  result
           << "\n";
  
      result = driver(18, 254.46900494077323); 
      cout << "TEST-" << 1 << "..."
           <<  result
           << "\n";
  
      result = driver(83, 5410.607947645021); 
      cout << "TEST-" << 2 << "..."
           <<  result
           << "\n";
  
      result = driver(39, 1194.5906065275187); 
      cout << "TEST-" << 3 << "..."
           <<  result
           << "\n";
  
      result = driver(68, 3631.6811075498013); 
      cout << "TEST-" << 4 << "..."
           <<  result
           << "\n";
  
      result = driver(28, 615.7521601035994); 
      cout << "TEST-" << 5 << "..."
           <<  result
           << "\n";
  
      result = driver(71, 3959.192141686537); 
      cout << "TEST-" << 6 << "..."
           <<  result
           << "\n";
  
      result = driver(14, 153.93804002589985); 
      cout << "TEST-" << 7 << "..."
           <<  result
           << "\n";
  
      result = driver(21, 346.36059005827474); 
      cout << "TEST-" << 8 << "..."
           <<  result
           << "\n";
  
      result = driver(73, 4185.386812745001); 
      cout << "TEST-" << 9 << "..."
           <<  result
           << "\n";
  
      return 0;
  }
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;
  }