Skip to content

Quick sort#2

Open
stuffacc wants to merge 5 commits intomasterfrom
sort
Open

Quick sort#2
stuffacc wants to merge 5 commits intomasterfrom
sort

Conversation

@stuffacc
Copy link
Owner

No description provided.

@stuffacc stuffacc requested a review from chernishev October 12, 2025 12:00
@stuffacc stuffacc self-assigned this Oct 12, 2025

gcc -c main.c -o main.o

gcc main.o optimal_sort.o
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,45 @@
#include<stdio.h>

void printArray(int size, int arr[]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

я бы сделал заголовочник и его подключал

4/main.c Outdated
int n = 0;

while (n < 100 && scanf("%d", &arr[n]) == 1) {
before[n] = arr[n];
Copy link
Collaborator

Choose a reason for hiding this comment

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

неправильное форматирование

4/main.c Outdated
printArray(n, arr);

printf("%d %d\n", n, changes(n, before, arr));
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

не то возвращаете, читайте задание

4/main.c Outdated
}


void printArray(int size, int arr[]) {
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; замечания в комментариях к коду

@stuffacc stuffacc requested a review from chernishev December 24, 2025 17:57
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