Conversation
chernishev
reviewed
Nov 11, 2025
|
|
||
| gcc -c main.c -o main.o | ||
|
|
||
| gcc main.o optimal_sort.o |
Collaborator
There was a problem hiding this comment.
можно всю сборку в одну строчку, но ок --- исправлять не надо
chernishev
reviewed
Nov 11, 2025
| @@ -0,0 +1,45 @@ | |||
| #include<stdio.h> | |||
|
|
|||
| void printArray(int size, int arr[]); | |||
Collaborator
There was a problem hiding this comment.
я бы сделал заголовочник и его подключал
chernishev
reviewed
Nov 11, 2025
4/main.c
Outdated
| int n = 0; | ||
|
|
||
| while (n < 100 && scanf("%d", &arr[n]) == 1) { | ||
| before[n] = arr[n]; |
Collaborator
There was a problem hiding this comment.
неправильное форматирование
chernishev
reviewed
Nov 11, 2025
4/main.c
Outdated
| printArray(n, arr); | ||
|
|
||
| printf("%d %d\n", n, changes(n, before, arr)); | ||
| } |
Collaborator
There was a problem hiding this comment.
не то возвращаете, читайте задание
chernishev
reviewed
Nov 11, 2025
4/main.c
Outdated
| } | ||
|
|
||
|
|
||
| void printArray(int size, int arr[]) { |
Collaborator
There was a problem hiding this comment.
проблемы с форматированием по всему коду; смотрите внимательней сами
chernishev
requested changes
Nov 11, 2025
Collaborator
chernishev
left a comment
There was a problem hiding this comment.
пока 3/5; замечания в комментариях к коду
p-senichenkov
approved these changes
Dec 24, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.