{"action":"created","comment":{"url":"https://api.github.com/repos/penspb/Tasks/pulls/comments/93832562","pull_request_review_id":14367065,"id":93832562,"diff_hunk":"@@ -0,0 +1,159 @@\n+#include <iostream>\n+\n+using namespace std;\n+\n+struct ListElement\n+{\n+\tint value;\n+\tListElement *next;\n+};\n+\n+void push(int value, ListElement *&head)\n+{\n+\tauto newElement = new ListElement{ value, head };\n+\thead = newElement;\n+}\n+\n+void add(int value, ListElement *&head)\n+{\n+\tif ((head == nullptr) || (head->value >= value))\n+\t{\n+\t\tpush(value, head);\n+\t}\n+\telse\n+\t{\n+\t\tListElement *zero = head;\n+\n+\t\twhile ((zero->next != nullptr) && (zero->next->value < value))\n+\t\t{\n+\t\t\tzero = zero->next;\n+\t\t}\n+\t\t\n+\t\tauto newElement = new ListElement{ value, zero->next };\n+\t\tzero->next = newElement;\n+\t}\n+}\n+\n+void print(ListElement *head)\n+{\n+\tauto element = head;\n+\n+\twhile (element != nullptr)\n+\t{\n+\t\tcout << element->value << \" \";\n+\t\telement = element->next;\n+\t}\n+}\n+\n+void deleteOfHead(ListElement *&head)\n+{\n+\tListElement *oldHead = head;\n+\thead = head->next;\n+\n+\tdelete oldHead;\n+}\n+\n+void deleteList(ListElement *&head)\n+{\n+\twhile (head != nullptr)\n+\t{\n+\t\tdeleteOfHead(head);\n+\t}\n+}\n+\n+void deleteElement(int value, ListElement *&head)\n+{\n+\tListElement *zero = new ListElement;\n+\tzero = head;\n+\n+\tListElement *first = new ListElement;\n+\tfirst = head;","path":"5.1/5.1/1.cpp","position":70,"original_position":70,"commit_id":"870d7663fe8cac20b6a49f53e98afff23777537e","original_commit_id":"870d7663fe8cac20b6a49f53e98afff23777537e","user":{"login":"yurii-litvinov","id":706768,"avatar_url":"https://avatars.githubusercontent.com/u/706768?v=3","gravatar_id":"","url":"https://api.github.com/users/yurii-litvinov","html_url":"https://github.com/yurii-litvinov","followers_url":"https://api.github.com/users/yurii-litvinov/followers","following_url":"https://api.github.com/users/yurii-litvinov/following{/other_user}","gists_url":"https://api.github.com/users/yurii-litvinov/gists{/gist_id}","starred_url":"https://api.github.com/users/yurii-litvinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurii-litvinov/subscriptions","organizations_url":"https://api.github.com/users/yurii-litvinov/orgs","repos_url":"https://api.github.com/users/yurii-litvinov/repos","events_url":"https://api.github.com/users/yurii-litvinov/events{/privacy}","received_events_url":"https://api.github.com/users/yurii-litvinov/received_events","type":"User","site_admin":false},"body":"Утечка памяти","created_at":"2016-12-25T18:29:39Z","updated_at":"2016-12-25T18:31:31Z","html_url":"https://github.com/penspb/Tasks/pull/6#discussion_r93832562","pull_request_url":"https://api.github.com/repos/penspb/Tasks/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/penspb/Tasks/pulls/comments/93832562"},"html":{"href":"https://github.com/penspb/Tasks/pull/6#discussion_r93832562"},"pull_request":{"href":"https://api.github.com/repos/penspb/Tasks/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/penspb/Tasks/pulls/6","id":98941836,"html_url":"https://github.com/penspb/Tasks/pull/6","diff_url":"https://github.com/penspb/Tasks/pull/6.diff","patch_url":"https://github.com/penspb/Tasks/pull/6.patch","issue_url":"https://api.github.com/repos/penspb/Tasks/issues/6","number":6,"state":"open","locked":false,"title":"5.1","user":{"login":"penspb","id":23472628,"avatar_url":"https://avatars.githubusercontent.com/u/23472628?v=3","gravatar_id":"","url":"https://api.github.com/users/penspb","html_url":"https://github.com/penspb","followers_url":"https://api.github.com/users/penspb/followers","following_url":"https://api.github.com/users/penspb/following{/other_user}","gists_url":"https://api.github.com/users/penspb/gists{/gist_id}","starred_url":"https://api.github.com/users/penspb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/penspb/subscriptions","organizations_url":"https://api.github.com/users/penspb/orgs","repos_url":"https://api.github.com/users/penspb/repos","events_url":"https://api.github.com/users/penspb/events{/privacy}","received_events_url":"https://api.github.com/users/penspb/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-21T14:27:29Z","updated_at":"2016-12-25T18:31:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3f21a00bb887ddee02c8b73abdd09261b7c35138","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/penspb/Tasks/pulls/6/commits","review_comments_url":"https://api.github.com/repos/penspb/Tasks/pulls/6/comments","review_comment_url":"https://api.github.com/repos/penspb/Tasks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/penspb/Tasks/issues/6/comments","statuses_url":"https://api.github.com/repos/penspb/Tasks/statuses/870d7663fe8cac20b6a49f53e98afff23777537e","head":{"label":"penspb:5.1","ref":"5.1","sha":"870d7663fe8cac20b6a49f53e98afff23777537e","user":{"login":"penspb","id":23472628,"avatar_url":"https://avatars.githubusercontent.com/u/23472628?v=3","gravatar_id":"","url":"https://api.github.com/users/penspb","html_url":"https://github.com/penspb","followers_url":"https://api.github.com/users/penspb/followers","following_url":"https://api.github.com/users/penspb/following{/other_user}","gists_url":"https://api.github.com/users/penspb/gists{/gist_id}","starred_url":"https://api.github.com/users/penspb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/penspb/subscriptions","organizations_url":"https://api.github.com/users/penspb/orgs","repos_url":"https://api.github.com/users/penspb/repos","events_url":"https://api.github.com/users/penspb/events{/privacy}","received_events_url":"https://api.github.com/users/penspb/received_events","type":"User","site_admin":false},"repo":{"id":74042766,"name":"Tasks","full_name":"penspb/Tasks","owner":{"login":"penspb","id":23472628,"avatar_url":"https://avatars.githubusercontent.com/u/23472628?v=3","gravatar_id":"","url":"https://api.github.com/users/penspb","html_url":"https://github.com/penspb","followers_url":"https://api.github.com/users/penspb/followers","following_url":"https://api.github.com/users/penspb/following{/other_user}","gists_url":"https://api.github.com/users/penspb/gists{/gist_id}","starred_url":"https://api.github.com/users/penspb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/penspb/subscriptions","organizations_url":"https://api.github.com/users/penspb/orgs","repos_url":"https://api.github.com/users/penspb/repos","events_url":"https://api.github.com/users/penspb/events{/privacy}","received_events_url":"https://api.github.com/users/penspb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/penspb/Tasks","description":null,"fork":false,"url":"https://api.github.com/repos/penspb/Tasks","forks_url":"https://api.github.com/repos/penspb/Tasks/forks","keys_url":"https://api.github.com/repos/penspb/Tasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/penspb/Tasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/penspb/Tasks/teams","hooks_url":"https://api.github.com/repos/penspb/Tasks/hooks","issue_events_url":"https://api.github.com/repos/penspb/Tasks/issues/events{/number}","events_url":"https://api.github.com/repos/penspb/Tasks/events","assignees_url":"https://api.github.com/repos/penspb/Tasks/assignees{/user}","branches_url":"https://api.github.com/repos/penspb/Tasks/branches{/branch}","tags_url":"https://api.github.com/repos/penspb/Tasks/tags","blobs_url":"https://api.github.com/repos/penspb/Tasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/penspb/Tasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/penspb/Tasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/penspb/Tasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/penspb/Tasks/statuses/{sha}","languages_url":"https://api.github.com/repos/penspb/Tasks/languages","stargazers_url":"https://api.github.com/repos/penspb/Tasks/stargazers","contributors_url":"https://api.github.com/repos/penspb/Tasks/contributors","subscribers_url":"https://api.github.com/repos/penspb/Tasks/subscribers","subscription_url":"https://api.github.com/repos/penspb/Tasks/subscription","commits_url":"https://api.github.com/repos/penspb/Tasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/penspb/Tasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/penspb/Tasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/penspb/Tasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/penspb/Tasks/contents/{+path}","compare_url":"https://api.github.com/repos/penspb/Tasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/penspb/Tasks/merges","archive_url":"https://api.github.com/repos/penspb/Tasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/penspb/Tasks/downloads","issues_url":"https://api.github.com/repos/penspb/Tasks/issues{/number}","pulls_url":"https://api.github.com/repos/penspb/Tasks/pulls{/number}","milestones_url":"https://api.github.com/repos/penspb/Tasks/milestones{/number}","notifications_url":"https://api.github.com/repos/penspb/Tasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/penspb/Tasks/labels{/name}","releases_url":"https://api.github.com/repos/penspb/Tasks/releases{/id}","deployments_url":"https://api.github.com/repos/penspb/Tasks/deployments","created_at":"2016-11-17T15:56:09Z","updated_at":"2016-12-21T13:05:20Z","pushed_at":"2016-12-25T18:23:25Z","git_url":"git://github.com/penspb/Tasks.git","ssh_url":"git@github.com:penspb/Tasks.git","clone_url":"https://github.com/penspb/Tasks.git","svn_url":"https://github.com/penspb/Tasks","homepage":null,"size":29912,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"penspb:master","ref":"master","sha":"07c052c6286ee939cdc79b259c4c9a471a2122ee","user":{"login":"penspb","id":23472628,"avatar_url":"https://avatars.githubusercontent.com/u/23472628?v=3","gravatar_id":"","url":"https://api.github.com/users/penspb","html_url":"https://github.com/penspb","followers_url":"https://api.github.com/users/penspb/followers","following_url":"https://api.github.com/users/penspb/following{/other_user}","gists_url":"https://api.github.com/users/penspb/gists{/gist_id}","starred_url":"https://api.github.com/users/penspb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/penspb/subscriptions","organizations_url":"https://api.github.com/users/penspb/orgs","repos_url":"https://api.github.com/users/penspb/repos","events_url":"https://api.github.com/users/penspb/events{/privacy}","received_events_url":"https://api.github.com/users/penspb/received_events","type":"User","site_admin":false},"repo":{"id":74042766,"name":"Tasks","full_name":"penspb/Tasks","owner":{"login":"penspb","id":23472628,"avatar_url":"https://avatars.githubusercontent.com/u/23472628?v=3","gravatar_id":"","url":"https://api.github.com/users/penspb","html_url":"https://github.com/penspb","followers_url":"https://api.github.com/users/penspb/followers","following_url":"https://api.github.com/users/penspb/following{/other_user}","gists_url":"https://api.github.com/users/penspb/gists{/gist_id}","starred_url":"https://api.github.com/users/penspb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/penspb/subscriptions","organizations_url":"https://api.github.com/users/penspb/orgs","repos_url":"https://api.github.com/users/penspb/repos","events_url":"https://api.github.com/users/penspb/events{/privacy}","received_events_url":"https://api.github.com/users/penspb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/penspb/Tasks","description":null,"fork":false,"url":"https://api.github.com/repos/penspb/Tasks","forks_url":"https://api.github.com/repos/penspb/Tasks/forks","keys_url":"https://api.github.com/repos/penspb/Tasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/penspb/Tasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/penspb/Tasks/teams","hooks_url":"https://api.github.com/repos/penspb/Tasks/hooks","issue_events_url":"https://api.github.com/repos/penspb/Tasks/issues/events{/number}","events_url":"https://api.github.com/repos/penspb/Tasks/events","assignees_url":"https://api.github.com/repos/penspb/Tasks/assignees{/user}","branches_url":"https://api.github.com/repos/penspb/Tasks/branches{/branch}","tags_url":"https://api.github.com/repos/penspb/Tasks/tags","blobs_url":"https://api.github.com/repos/penspb/Tasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/penspb/Tasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/penspb/Tasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/penspb/Tasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/penspb/Tasks/statuses/{sha}","languages_url":"https://api.github.com/repos/penspb/Tasks/languages","stargazers_url":"https://api.github.com/repos/penspb/Tasks/stargazers","contributors_url":"https://api.github.com/repos/penspb/Tasks/contributors","subscribers_url":"https://api.github.com/repos/penspb/Tasks/subscribers","subscription_url":"https://api.github.com/repos/penspb/Tasks/subscription","commits_url":"https://api.github.com/repos/penspb/Tasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/penspb/Tasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/penspb/Tasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/penspb/Tasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/penspb/Tasks/contents/{+path}","compare_url":"https://api.github.com/repos/penspb/Tasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/penspb/Tasks/merges","archive_url":"https://api.github.com/repos/penspb/Tasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/penspb/Tasks/downloads","issues_url":"https://api.github.com/repos/penspb/Tasks/issues{/number}","pulls_url":"https://api.github.com/repos/penspb/Tasks/pulls{/number}","milestones_url":"https://api.github.com/repos/penspb/Tasks/milestones{/number}","notifications_url":"https://api.github.com/repos/penspb/Tasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/penspb/Tasks/labels{/name}","releases_url":"https://api.github.com/repos/penspb/Tasks/releases{/id}","deployments_url":"https://api.github.com/repos/penspb/Tasks/deployments","created_at":"2016-11-17T15:56:09Z","updated_at":"2016-12-21T13:05:20Z","pushed_at":"2016-12-25T18:23:25Z","git_url":"git://github.com/penspb/Tasks.git","ssh_url":"git@github.com:penspb/Tasks.git","clone_url":"https://github.com/penspb/Tasks.git","svn_url":"https://github.com/penspb/Tasks","homepage":null,"size":29912,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/penspb/Tasks/pulls/6"},"html":{"href":"https://github.com/penspb/Tasks/pull/6"},"issue":{"href":"https://api.github.com/repos/penspb/Tasks/issues/6"},"comments":{"href":"https://api.github.com/repos/penspb/Tasks/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/penspb/Tasks/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/penspb/Tasks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/penspb/Tasks/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/penspb/Tasks/statuses/870d7663fe8cac20b6a49f53e98afff23777537e"}}}}
{"actor":{"display_login":"yurii-litvinov"}}