Ad
  • Custom User Avatar

    What if the vectors are {2, 3} and {9, 4} (should be true)? Or {2, 3, 3} and 4, 9, 9 (should be true)? If I'm not mistaking both cases will fail with your solution.

  • Custom User Avatar

    HTH: Try printing the input and see exactly it is.

    But generally we can't help you unless we see your code. Put down your code in a comment in this syntax:

    ```cpp
      ^ language
    this is a code block
       whitespace yay
    ```
    

    If you do this, check 'mark as having spoiler content' below the comment box.

    If next time it's a top-level comment, you can use the label 'question'.