{"action":"created","comment":{"url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/pulls/comments/236062067","pull_request_review_id":178070379,"id":236062067,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNjA2MjA2Nw==","diff_hunk":"@@ -1,5 +1,43 @@\n #include <stdlib.h>\n-\n+#include <stdio.h>\n+typedef int key;\n+void Sift (key a[], int i, int n) {\n+\tint l, r, k;\n+\tkey t;\n+\ti++;\n+\twhile ((l=2*i)<=n) {\n+\t\tr=(l+1<=n)? l+1 : i;\n+\t\tif ((a[i-1]>=a[l-1]) && (a[i-1]>=a[r-1]))\n+\t\t\treturn;\n+\t\tk=(a[l-1]>=a[r-1]) ? l : r;\n+\t\tt=a[i-1];\n+\t\ta[i-1]=a[k-1];\n+\t\ta[k-1]=t;\n+\t\ti=k;\n+\t}\n+}\n+void heap_sort (key a[], int N) {\n+\tint i;\n+\tkey t;\n+\tfor (i=N/2; i>=0; i--)\n+\t\tSift (a, i, N);\n+\tfor (i=N-1; i>0; i--) {\n+\t\tt=a[0];\n+\t\ta[0]=a[i];\n+\t\ta[i]=t;\n+\t\tSift (a, 0, i);\n+\t}\n+}\n int main(void) {\n-    return EXIT_SUCCESS;\n+\tint i, N;","path":"lab3-0/src/main.c","position":34,"original_position":34,"commit_id":"414c94c82ff8e1bb5b166ca543553fc910d1bbbf","original_commit_id":"414c94c82ff8e1bb5b166ca543553fc910d1bbbf","user":{"login":"bobrofon","id":2812655,"node_id":"MDQ6VXNlcjI4MTI2NTU=","avatar_url":"https://avatars1.githubusercontent.com/u/2812655?v=4","gravatar_id":"","url":"https://api.github.com/users/bobrofon","html_url":"https://github.com/bobrofon","followers_url":"https://api.github.com/users/bobrofon/followers","following_url":"https://api.github.com/users/bobrofon/following{/other_user}","gists_url":"https://api.github.com/users/bobrofon/gists{/gist_id}","starred_url":"https://api.github.com/users/bobrofon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobrofon/subscriptions","organizations_url":"https://api.github.com/users/bobrofon/orgs","repos_url":"https://api.github.com/users/bobrofon/repos","events_url":"https://api.github.com/users/bobrofon/events{/privacy}","received_events_url":"https://api.github.com/users/bobrofon/received_events","type":"User","site_admin":false},"body":"Ну, допустим, попробуй подать на вход программе `\"какую нибудь строку\". Результат может быть неожиданным.","created_at":"2018-11-25T06:37:50Z","updated_at":"2018-11-25T06:44:42Z","html_url":"https://github.com/bobrofon/nsu_prog_labs/pull/25#discussion_r236062067","pull_request_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/pulls/25","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/bobrofon/nsu_prog_labs/pulls/comments/236062067"},"html":{"href":"https://github.com/bobrofon/nsu_prog_labs/pull/25#discussion_r236062067"},"pull_request":{"href":"https://api.github.com/repos/bobrofon/nsu_prog_labs/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/pulls/25","id":233237160,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzMjM3MTYw","html_url":"https://github.com/bobrofon/nsu_prog_labs/pull/25","diff_url":"https://github.com/bobrofon/nsu_prog_labs/pull/25.diff","patch_url":"https://github.com/bobrofon/nsu_prog_labs/pull/25.patch","issue_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/issues/25","number":25,"state":"open","locked":false,"title":"Ещё одна попытка отправить вам лабораторную 3-1","user":{"login":"Krogan1987","id":44030461,"node_id":"MDQ6VXNlcjQ0MDMwNDYx","avatar_url":"https://avatars2.githubusercontent.com/u/44030461?v=4","gravatar_id":"","url":"https://api.github.com/users/Krogan1987","html_url":"https://github.com/Krogan1987","followers_url":"https://api.github.com/users/Krogan1987/followers","following_url":"https://api.github.com/users/Krogan1987/following{/other_user}","gists_url":"https://api.github.com/users/Krogan1987/gists{/gist_id}","starred_url":"https://api.github.com/users/Krogan1987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Krogan1987/subscriptions","organizations_url":"https://api.github.com/users/Krogan1987/orgs","repos_url":"https://api.github.com/users/Krogan1987/repos","events_url":"https://api.github.com/users/Krogan1987/events{/privacy}","received_events_url":"https://api.github.com/users/Krogan1987/received_events","type":"User","site_admin":false},"body":"Надеюсь, она окажется успешной","created_at":"2018-11-23T15:55:45Z","updated_at":"2018-11-25T06:44:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"94a4d8516f48176e524ff581fdfb720a9d62db24","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/pulls/25/commits","review_comments_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/pulls/25/comments","review_comment_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/issues/25/comments","statuses_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/statuses/414c94c82ff8e1bb5b166ca543553fc910d1bbbf","head":{"label":"Krogan1987:master","ref":"master","sha":"414c94c82ff8e1bb5b166ca543553fc910d1bbbf","user":{"login":"Krogan1987","id":44030461,"node_id":"MDQ6VXNlcjQ0MDMwNDYx","avatar_url":"https://avatars2.githubusercontent.com/u/44030461?v=4","gravatar_id":"","url":"https://api.github.com/users/Krogan1987","html_url":"https://github.com/Krogan1987","followers_url":"https://api.github.com/users/Krogan1987/followers","following_url":"https://api.github.com/users/Krogan1987/following{/other_user}","gists_url":"https://api.github.com/users/Krogan1987/gists{/gist_id}","starred_url":"https://api.github.com/users/Krogan1987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Krogan1987/subscriptions","organizations_url":"https://api.github.com/users/Krogan1987/orgs","repos_url":"https://api.github.com/users/Krogan1987/repos","events_url":"https://api.github.com/users/Krogan1987/events{/privacy}","received_events_url":"https://api.github.com/users/Krogan1987/received_events","type":"User","site_admin":false},"repo":{"id":152439534,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI0Mzk1MzQ=","name":"nsu_prog_labs","full_name":"Krogan1987/nsu_prog_labs","private":false,"owner":{"login":"Krogan1987","id":44030461,"node_id":"MDQ6VXNlcjQ0MDMwNDYx","avatar_url":"https://avatars2.githubusercontent.com/u/44030461?v=4","gravatar_id":"","url":"https://api.github.com/users/Krogan1987","html_url":"https://github.com/Krogan1987","followers_url":"https://api.github.com/users/Krogan1987/followers","following_url":"https://api.github.com/users/Krogan1987/following{/other_user}","gists_url":"https://api.github.com/users/Krogan1987/gists{/gist_id}","starred_url":"https://api.github.com/users/Krogan1987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Krogan1987/subscriptions","organizations_url":"https://api.github.com/users/Krogan1987/orgs","repos_url":"https://api.github.com/users/Krogan1987/repos","events_url":"https://api.github.com/users/Krogan1987/events{/privacy}","received_events_url":"https://api.github.com/users/Krogan1987/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Krogan1987/nsu_prog_labs","description":"Programming course in Novosibirsk State University","fork":true,"url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs","forks_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/forks","keys_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/teams","hooks_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/hooks","issue_events_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/issues/events{/number}","events_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/events","assignees_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/assignees{/user}","branches_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/branches{/branch}","tags_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/tags","blobs_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/git/refs{/sha}","trees_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/statuses/{sha}","languages_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/languages","stargazers_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/stargazers","contributors_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/contributors","subscribers_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/subscribers","subscription_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/subscription","commits_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/commits{/sha}","git_commits_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/git/commits{/sha}","comments_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/comments{/number}","issue_comment_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/issues/comments{/number}","contents_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/contents/{+path}","compare_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/merges","archive_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/downloads","issues_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/issues{/number}","pulls_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/pulls{/number}","milestones_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/milestones{/number}","notifications_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/labels{/name}","releases_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/releases{/id}","deployments_url":"https://api.github.com/repos/Krogan1987/nsu_prog_labs/deployments","created_at":"2018-10-10T14:43:25Z","updated_at":"2018-11-23T16:58:00Z","pushed_at":"2018-11-23T16:57:58Z","git_url":"git://github.com/Krogan1987/nsu_prog_labs.git","ssh_url":"git@github.com:Krogan1987/nsu_prog_labs.git","clone_url":"https://github.com/Krogan1987/nsu_prog_labs.git","svn_url":"https://github.com/Krogan1987/nsu_prog_labs","homepage":"","size":362,"stargazers_count":0,"watchers_count":0,"language":"CMake","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"unlicense","name":"The Unlicense","spdx_id":"Unlicense","url":"https://api.github.com/licenses/unlicense","node_id":"MDc6TGljZW5zZTE1"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bobrofon:master","ref":"master","sha":"af1ed5cbacfd06ad1e79d66f16d3561989499cba","user":{"login":"bobrofon","id":2812655,"node_id":"MDQ6VXNlcjI4MTI2NTU=","avatar_url":"https://avatars1.githubusercontent.com/u/2812655?v=4","gravatar_id":"","url":"https://api.github.com/users/bobrofon","html_url":"https://github.com/bobrofon","followers_url":"https://api.github.com/users/bobrofon/followers","following_url":"https://api.github.com/users/bobrofon/following{/other_user}","gists_url":"https://api.github.com/users/bobrofon/gists{/gist_id}","starred_url":"https://api.github.com/users/bobrofon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobrofon/subscriptions","organizations_url":"https://api.github.com/users/bobrofon/orgs","repos_url":"https://api.github.com/users/bobrofon/repos","events_url":"https://api.github.com/users/bobrofon/events{/privacy}","received_events_url":"https://api.github.com/users/bobrofon/received_events","type":"User","site_admin":false},"repo":{"id":147659938,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc2NTk5Mzg=","name":"nsu_prog_labs","full_name":"bobrofon/nsu_prog_labs","private":false,"owner":{"login":"bobrofon","id":2812655,"node_id":"MDQ6VXNlcjI4MTI2NTU=","avatar_url":"https://avatars1.githubusercontent.com/u/2812655?v=4","gravatar_id":"","url":"https://api.github.com/users/bobrofon","html_url":"https://github.com/bobrofon","followers_url":"https://api.github.com/users/bobrofon/followers","following_url":"https://api.github.com/users/bobrofon/following{/other_user}","gists_url":"https://api.github.com/users/bobrofon/gists{/gist_id}","starred_url":"https://api.github.com/users/bobrofon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobrofon/subscriptions","organizations_url":"https://api.github.com/users/bobrofon/orgs","repos_url":"https://api.github.com/users/bobrofon/repos","events_url":"https://api.github.com/users/bobrofon/events{/privacy}","received_events_url":"https://api.github.com/users/bobrofon/received_events","type":"User","site_admin":false},"html_url":"https://github.com/bobrofon/nsu_prog_labs","description":"Programming course in Novosibirsk State University","fork":false,"url":"https://api.github.com/repos/bobrofon/nsu_prog_labs","forks_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/forks","keys_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/teams","hooks_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/hooks","issue_events_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/issues/events{/number}","events_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/events","assignees_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/assignees{/user}","branches_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/branches{/branch}","tags_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/tags","blobs_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/git/refs{/sha}","trees_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/statuses/{sha}","languages_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/languages","stargazers_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/stargazers","contributors_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/contributors","subscribers_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/subscribers","subscription_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/subscription","commits_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/commits{/sha}","git_commits_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/git/commits{/sha}","comments_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/comments{/number}","issue_comment_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/issues/comments{/number}","contents_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/contents/{+path}","compare_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/merges","archive_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/downloads","issues_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/issues{/number}","pulls_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/pulls{/number}","milestones_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/milestones{/number}","notifications_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/labels{/name}","releases_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/releases{/id}","deployments_url":"https://api.github.com/repos/bobrofon/nsu_prog_labs/deployments","created_at":"2018-09-06T10:53:56Z","updated_at":"2018-10-14T11:50:06Z","pushed_at":"2018-11-25T05:47:51Z","git_url":"git://github.com/bobrofon/nsu_prog_labs.git","ssh_url":"git@github.com:bobrofon/nsu_prog_labs.git","clone_url":"https://github.com/bobrofon/nsu_prog_labs.git","svn_url":"https://github.com/bobrofon/nsu_prog_labs","homepage":"","size":365,"stargazers_count":0,"watchers_count":0,"language":"CMake","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"unlicense","name":"The Unlicense","spdx_id":"Unlicense","url":"https://api.github.com/licenses/unlicense","node_id":"MDc6TGljZW5zZTE1"},"forks":10,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bobrofon/nsu_prog_labs/pulls/25"},"html":{"href":"https://github.com/bobrofon/nsu_prog_labs/pull/25"},"issue":{"href":"https://api.github.com/repos/bobrofon/nsu_prog_labs/issues/25"},"comments":{"href":"https://api.github.com/repos/bobrofon/nsu_prog_labs/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/bobrofon/nsu_prog_labs/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/bobrofon/nsu_prog_labs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bobrofon/nsu_prog_labs/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/bobrofon/nsu_prog_labs/statuses/414c94c82ff8e1bb5b166ca543553fc910d1bbbf"}},"author_association":"NONE"}}
{"actor":{"display_login":"bobrofon"}}