C-Plus-Plus icon indicating copy to clipboard operation
C-Plus-Plus copied to clipboard

Collection of various algorithms in mathematics, machine learning, computer science and physics implemented in C++ for educational purposes.

Results 378 C-Plus-Plus issues
Sort by recently updated
recently updated
newest added

#### Description of Change This PR removes unused variables reported by the compiler. #### Checklist - [x] Added description of change - [x] PR title follows semantic [commit guidelines](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/CONTRIBUTING.md#Commit-Guidelines) -...

1. Typographical Error in Doxygen Comment In the Doxygen comment at the beginning of the file, "Merege Sort" should be corrected to "Merge Sort". 2. Merging Logic In the merge...

approved
hacktoberfest-accepted

#### Description of Change #### Checklist - [ ] Added description of change - [ ] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/CONTRIBUTING.md#New-File-Name-guidelines) - [ ] Added tests and example,...

approved

1. Input Validation in main() function: Issue: The original code did not check for non-positive values of n (array size). As a result, entering a value of n

#### Description of Change This is a simplified and beginner-friendly implementation of the Bubble Sort algorithm using basic C++ constructs without templates or advanced libraries. It accepts user input directly...

#### Description of Change #### Checklist - [ ] Added description of change - [ ] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/CONTRIBUTING.md#New-File-Name-guidelines) - [ ] Added tests and example,...

#### Description of Change Added ReverseMap container with: insert(key, value) to build the map to_vector() to output a (key, value) list sorted. #### Checklist - [x] Added description of change...

### Description I found a buffer overflow issue in range_queries/sparse_table_range_queries.cpp through static analysis. The problem occurs in two locations: sparse_table_range_queries.cpp:61:26: Buffer overflow when accessing logs[n] sparse_table_range_queries.cpp:86:13: Buffer overflow when accessing...

bug