Skip to content

оптимальная сортировка#3

Open
EStarikov wants to merge 6 commits intomainfrom
optimal_sort
Open

оптимальная сортировка#3
EStarikov wants to merge 6 commits intomainfrom
optimal_sort

Conversation

@EStarikov
Copy link
Owner

No description provided.

@EStarikov EStarikov requested a review from chernishev October 5, 2025 16:01
@@ -0,0 +1 @@
void quicksort(int* mas, int size); No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не хватает include guards

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

лучше README.md

@@ -0,0 +1 @@
write "make -f Makefile" No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

лучше просто "make"

}
printf("%d", count);
free(numbers);
return 0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не тот код возвращаете, читайте условие внимательно

while (scanf("%d", &arr[index]) == 1) {
index++;
}
int* numbers = (int*)malloc(sizeof(int) * index);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это не нужно

@@ -0,0 +1,6 @@
all:
gcc -S quicksort.c -o quicksort.s
gcc main.c quicksort.c -o qsort
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

тут должно быть не так

Copy link
Collaborator

@chernishev chernishev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

пока 3/5. замечания на github

@@ -0,0 +1,6 @@
all:
gcc -S quicksort.c -o quicksort.s
gcc main.c quicksort.c -o qsort
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Всё ещё не так

@@ -0,0 +1,29 @@
#include "functions.h"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Хедер и его исходный файл должны называться одинаково

Comment on lines 14 to 16
for (int i = 0; i < index; i++) {
numbers[i] = arr[i];
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можно воспользоваться mempcy

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

Successfully merging this pull request may close these issues.

3 participants