style: remove unused params of main (#2948)

Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
This commit is contained in:
Piotr Idzik
2025-08-15 05:52:28 +02:00
committed by GitHub
parent d4962c3032
commit fb27d4d304
30 changed files with 32 additions and 70 deletions

View File

@@ -11,7 +11,7 @@ int fib(int n) {
}
return res[1];
}
int main(int argc, char const *argv[]) {
int main() {
int n;
cout << "Enter n: ";
cin >> n;

View File

@@ -74,11 +74,9 @@ static void test() {
/**
* @brief Main function
* @param argc commandline argument count (ignored)
* @param argv commandline array of arguments (ignored)
* @returns 0 on exit
*/
int main(int argc, char const *argv[]) {
int main() {
uint32_t n = 0;
std::cout << "Enter size of array: ";

View File

@@ -29,7 +29,7 @@ int LIS(const std::vector<int>& arr, int n) {
}
return active.size(); // size of the LIS.
}
int main(int argc, char const* argv[]) {
int main() {
int n;
cout << "Enter size of array: ";
cin >> n;

View File

@@ -79,11 +79,9 @@ static void test() {
/**
* @brief Main function
* @param argc commandline argument count (ignored)
* @param argv commandline array of arguments (ignored)
* @returns 0 on exit
*/
int main(int argc, char *argv[]) {
int main() {
test(); // run self-test implementations
return 0;
}

View File

@@ -166,11 +166,9 @@ static void test() {
/**
* @brief main function
* @param argc commandline argument count (ignored)
* @param argv commandline array of arguments (ignored)
* @returns 0 on exit
*/
int main(int argc, char *argv[]) {
int main() {
test(); // run self-test implementations
return 0;
}