parallel101 / parallel101/course
bug : course/06/01_for/07/main.cpp
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 4.2k
- Forks
- 556
- PR merge metrics
- No merged PRs in 30d
Description
三维数组vector初始化大小应为n * n * n
std::vector a(n * n); ---------》 std::vector a(n * n *n);
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open course/06/01_for/07/main.cpp and inspect the vector initialization for the three-dimensional array example. Change the allocation to include all three n dimensions, then build or run the example to confirm the initialization matches the indexing used there.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- hpc
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 62/100