Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Can you explain this more detailed, which line causes the error and what can i do?

  • Custom User Avatar

    what is the problem with this code? exit code 132

    std::pair<std::size_t, std::size_t> two_sum(const std::vector& n, int target) {
    for(int i=0,j=n.size()-1;i<j;){
    if(n[i]+n[j]>target)j--;
    else if(n[i]+n[j]<target)i++;
    else return {i,j};
    }
    }