title: Detect If Two Integers Have Opposite Signs
signature: pub fn detect_if_two_integers_have_opposite_signs(x: i32, y: i32) -> bool {
test_code: use std::collections::HashMap;
  use std::collections::HashSet;
  use std::cmp::*;
  use std::collections::*;
  use std::fmt::*; 
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  pub fn validate_solution(actual: bool, expected: bool)->bool{
  return actual==expected
  }
  pub fn driver(x: i32, y: i32, expected: bool)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(x, y), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        59, -99, 
        true
      ));
      
      println!("TEST-1...{}", driver(
        -20, -21, 
        false
      ));
      
      println!("TEST-2...{}", driver(
        -100, 79, 
        true
      ));
      
      println!("TEST-3...{}", driver(
        54, -49, 
        true
      ));
      
      println!("TEST-4...{}", driver(
        -16, 16, 
        true
      ));
      
      println!("TEST-5...{}", driver(
        -23, -68, 
        false
      ));
      
      println!("TEST-6...{}", driver(
        93, 37, 
        false
      ));
      
      println!("TEST-7...{}", driver(
        24, -61, 
        true
      ));
      
      println!("TEST-8...{}", driver(
        -8, 69, 
        true
      ));
      
      println!("TEST-9...{}", driver(
        29, 10, 
        false
      ));
      
  }
source_py: def detect_if_two_integers_have_opposite_signs(x, y):
      return ((x ^ y) < 0)
source_cpp: bool detect_if_two_integers_have_opposite_signs(int x, int y) {
    return ( ( x ^ y ) < 0 );
  }