title: Program Calculate Volume Octahedron
signature: double programCalculateVolumeOctahedron(double side) {
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(double side, double expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(side), 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(3355.322051344013, 17807230335.375374); 
      cout << "TEST-" << 0 << "..."
           <<  result
           << "\n";
  
      result = driver(-891.0551553192736, -333508958.9649689); 
      cout << "TEST-" << 1 << "..."
           <<  result
           << "\n";
  
      result = driver(8242.699647177868, 263998930936.71603); 
      cout << "TEST-" << 2 << "..."
           <<  result
           << "\n";
  
      result = driver(-9259.146104439229, -374202387762.81836); 
      cout << "TEST-" << 3 << "..."
           <<  result
           << "\n";
  
      result = driver(7712.806145993083, 216287285897.3415); 
      cout << "TEST-" << 4 << "..."
           <<  result
           << "\n";
  
      result = driver(-4998.858862079315, -58885228987.99368); 
      cout << "TEST-" << 5 << "..."
           <<  result
           << "\n";
  
      result = driver(9771.127582524628, 439772223071.1617); 
      cout << "TEST-" << 6 << "..."
           <<  result
           << "\n";
  
      result = driver(-5415.8106399098115, -74883158892.28471); 
      cout << "TEST-" << 7 << "..."
           <<  result
           << "\n";
  
      result = driver(670.0774772280249, 141830229.25431916); 
      cout << "TEST-" << 8 << "..."
           <<  result
           << "\n";
  
      result = driver(-7068.634369272122, -166494655500.3635); 
      cout << "TEST-" << 9 << "..."
           <<  result
           << "\n";
  
      return 0;
  }
source_py: def program_calculate_volume_octahedron(side):
      return (((side * side) * side) * (math.sqrt(2) / 3))
source_cpp: double program_calculate_volume_octahedron(double side) {
    return ( ( side * side * side ) * ( sqrt ( 2 ) / 3 ) );
  }