main.cpp 301 B

123456789101112131415161718
  1. #include <iostream>
  2. int cpp_sq_func(int);
  3. int cu1_sq_func(int);
  4. int cu2_sq_func(int);
  5. bool test_functions()
  6. {
  7. return (cu1_sq_func(42) == cpp_sq_func(42)) &&
  8. (cu2_sq_func(42) == cpp_sq_func(42));
  9. }
  10. int main(int argc, char** argv)
  11. {
  12. int result = test_functions() ? 0 : 1;
  13. return result;
  14. }