Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vector out of range #1

Open
linkedlist771 opened this issue Nov 10, 2022 · 0 comments
Open

Vector out of range #1

linkedlist771 opened this issue Nov 10, 2022 · 0 comments

Comments

@linkedlist771
Copy link

linkedlist771 commented Nov 10, 2022

Hi Grimy,
I found a error when I used your multi-thread combination for the vector array of int, here is my code.

`

std::vector<std::vector<int>> res; 

const std::vector<int>& v = { 1,2,2,34 };

res = C_With_Multithreading(v);

res;

`
However , once I compile and run the code , the IDE(VS 2022) told me that , the subscript of the vector is out range . While I am
not familiar with the multi-thread , I have no idea about how to debug .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant