Ad
  • Default User Avatar

    Problems

    1. namespace conflict. better add std::vector instead of vector. Run the code with return 0; you will see this.
    2. square root of max element <= min element. your test cases are badly defined to obey the condition.