mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-03 02:25:57 +08:00
style: remove unused params of main (#2948)
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
This commit is contained in:
@@ -191,11 +191,9 @@ static void test(const std::vector<int> &vals, int windowSize) {
|
||||
|
||||
/**
|
||||
* @brief Main function
|
||||
* @param argc command line argument count (ignored)
|
||||
* @param argv command line array of arguments (ignored)
|
||||
* @returns 0 on exit
|
||||
*/
|
||||
int main(int argc, const char *argv[]) {
|
||||
int main() {
|
||||
/// A few fixed test cases
|
||||
test({1, 2, 3, 4, 5, 6, 7, 8, 9},
|
||||
3); /// Array of sorted values; odd window size
|
||||
|
||||
Reference in New Issue
Block a user