{"action":"created","comment":{"url":"https://api.github.com/repos/brainiacum/learnCpp/pulls/comments/136793588","pull_request_review_id":60380755,"id":136793588,"diff_hunk":"@@ -0,0 +1,55 @@\n+#include <iostream>\n+#include <vector>\n+\n+int main()\n+{\n+\tstd::cout << \"Введите размер вектора\\n\";\n+\tint vecsize;\n+\tstd::cin >> vecsize;\n+\tif (std::cin.fail())\n+\t{\n+\t\tstd::cout << \"Введено нецелочисленное значение.\\n\";\n+\t\treturn 0;\n+\t}\n+\telse if (vecsize <= 0)\n+\t{\n+\t\tdo\n+\t\t{\t\t\n+\t\t\tstd::cout << \"Размер вектора должен быть положителен. Введите значение заново.\\n\";\n+\t\t\tstd::cin >> vecsize;\n+\t\t}\n+\t\twhile (vecsize <= 0);\n+\t}\n+\tstd::vector<int> v1;\n+\tstd::cout << \"Коллекция чисел: \\n\";\n+\tfor(unsigned int i = 0; i < vecsize; i++)\n+\t{\n+\t\tint j = i;\n+\t\tint value = (vecsize - i) * 2;\n+\t\tv1.push_back(value);\n+\t\tstd::cout << ++j << \"е число \" << v1.back() << \"\\n\";\n+\t}\n+\tstd::cout << \"Размер вектора: \" << v1.size() << \"\\n\";\n+\n+\n+\tfor (int j = 0; j < vecsize; j++)\n+\t{\n+\t\tint posit = j;","path":"1a.cpp","position":37,"original_position":37,"commit_id":"0029086bba7cca93e95045f8196e42c7a7c52065","original_commit_id":"1a1f7fb1171fc4acc09b8aed6279aadfbc92a759","user":{"login":"IgorGorbunov20","id":25636404,"avatar_url":"https://avatars3.githubusercontent.com/u/25636404?v=4","gravatar_id":"","url":"https://api.github.com/users/IgorGorbunov20","html_url":"https://github.com/IgorGorbunov20","followers_url":"https://api.github.com/users/IgorGorbunov20/followers","following_url":"https://api.github.com/users/IgorGorbunov20/following{/other_user}","gists_url":"https://api.github.com/users/IgorGorbunov20/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorGorbunov20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorGorbunov20/subscriptions","organizations_url":"https://api.github.com/users/IgorGorbunov20/orgs","repos_url":"https://api.github.com/users/IgorGorbunov20/repos","events_url":"https://api.github.com/users/IgorGorbunov20/events{/privacy}","received_events_url":"https://api.github.com/users/IgorGorbunov20/received_events","type":"User","site_admin":false},"body":"Because 'posit' changes during the cycle, while j does not.\r\n![src1a](https://user-images.githubusercontent.com/25636404/30022972-5076a322-9176-11e7-8830-a72f4d352fae.png)\r\n","created_at":"2017-09-04T10:38:24Z","updated_at":"2017-09-04T10:38:24Z","html_url":"https://github.com/brainiacum/learnCpp/pull/1#discussion_r136793588","pull_request_url":"https://api.github.com/repos/brainiacum/learnCpp/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/brainiacum/learnCpp/pulls/comments/136793588"},"html":{"href":"https://github.com/brainiacum/learnCpp/pull/1#discussion_r136793588"},"pull_request":{"href":"https://api.github.com/repos/brainiacum/learnCpp/pulls/1"}},"in_reply_to_id":136394427},"pull_request":{"url":"https://api.github.com/repos/brainiacum/learnCpp/pulls/1","id":136011554,"html_url":"https://github.com/brainiacum/learnCpp/pull/1","diff_url":"https://github.com/brainiacum/learnCpp/pull/1.diff","patch_url":"https://github.com/brainiacum/learnCpp/pull/1.patch","issue_url":"https://api.github.com/repos/brainiacum/learnCpp/issues/1","number":1,"state":"open","locked":false,"title":"Vector","user":{"login":"IgorGorbunov20","id":25636404,"avatar_url":"https://avatars3.githubusercontent.com/u/25636404?v=4","gravatar_id":"","url":"https://api.github.com/users/IgorGorbunov20","html_url":"https://github.com/IgorGorbunov20","followers_url":"https://api.github.com/users/IgorGorbunov20/followers","following_url":"https://api.github.com/users/IgorGorbunov20/following{/other_user}","gists_url":"https://api.github.com/users/IgorGorbunov20/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorGorbunov20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorGorbunov20/subscriptions","organizations_url":"https://api.github.com/users/IgorGorbunov20/orgs","repos_url":"https://api.github.com/users/IgorGorbunov20/repos","events_url":"https://api.github.com/users/IgorGorbunov20/events{/privacy}","received_events_url":"https://api.github.com/users/IgorGorbunov20/received_events","type":"User","site_admin":false},"body":"Finished 1a,1b,1c also written CMakeLists.txt","created_at":"2017-08-16T12:27:38Z","updated_at":"2017-09-04T10:38:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae3a15e69d87a4af4314e343162c67eb6aa3a37a","assignee":{"login":"IgorGorbunov20","id":25636404,"avatar_url":"https://avatars3.githubusercontent.com/u/25636404?v=4","gravatar_id":"","url":"https://api.github.com/users/IgorGorbunov20","html_url":"https://github.com/IgorGorbunov20","followers_url":"https://api.github.com/users/IgorGorbunov20/followers","following_url":"https://api.github.com/users/IgorGorbunov20/following{/other_user}","gists_url":"https://api.github.com/users/IgorGorbunov20/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorGorbunov20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorGorbunov20/subscriptions","organizations_url":"https://api.github.com/users/IgorGorbunov20/orgs","repos_url":"https://api.github.com/users/IgorGorbunov20/repos","events_url":"https://api.github.com/users/IgorGorbunov20/events{/privacy}","received_events_url":"https://api.github.com/users/IgorGorbunov20/received_events","type":"User","site_admin":false},"assignees":[{"login":"IgorGorbunov20","id":25636404,"avatar_url":"https://avatars3.githubusercontent.com/u/25636404?v=4","gravatar_id":"","url":"https://api.github.com/users/IgorGorbunov20","html_url":"https://github.com/IgorGorbunov20","followers_url":"https://api.github.com/users/IgorGorbunov20/followers","following_url":"https://api.github.com/users/IgorGorbunov20/following{/other_user}","gists_url":"https://api.github.com/users/IgorGorbunov20/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorGorbunov20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorGorbunov20/subscriptions","organizations_url":"https://api.github.com/users/IgorGorbunov20/orgs","repos_url":"https://api.github.com/users/IgorGorbunov20/repos","events_url":"https://api.github.com/users/IgorGorbunov20/events{/privacy}","received_events_url":"https://api.github.com/users/IgorGorbunov20/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"predatoryBird","id":2070495,"avatar_url":"https://avatars0.githubusercontent.com/u/2070495?v=4","gravatar_id":"","url":"https://api.github.com/users/predatoryBird","html_url":"https://github.com/predatoryBird","followers_url":"https://api.github.com/users/predatoryBird/followers","following_url":"https://api.github.com/users/predatoryBird/following{/other_user}","gists_url":"https://api.github.com/users/predatoryBird/gists{/gist_id}","starred_url":"https://api.github.com/users/predatoryBird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/predatoryBird/subscriptions","organizations_url":"https://api.github.com/users/predatoryBird/orgs","repos_url":"https://api.github.com/users/predatoryBird/repos","events_url":"https://api.github.com/users/predatoryBird/events{/privacy}","received_events_url":"https://api.github.com/users/predatoryBird/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/brainiacum/learnCpp/pulls/1/commits","review_comments_url":"https://api.github.com/repos/brainiacum/learnCpp/pulls/1/comments","review_comment_url":"https://api.github.com/repos/brainiacum/learnCpp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brainiacum/learnCpp/issues/1/comments","statuses_url":"https://api.github.com/repos/brainiacum/learnCpp/statuses/0029086bba7cca93e95045f8196e42c7a7c52065","head":{"label":"brainiacum:vector","ref":"vector","sha":"0029086bba7cca93e95045f8196e42c7a7c52065","user":{"login":"brainiacum","id":30291376,"avatar_url":"https://avatars1.githubusercontent.com/u/30291376?v=4","gravatar_id":"","url":"https://api.github.com/users/brainiacum","html_url":"https://github.com/brainiacum","followers_url":"https://api.github.com/users/brainiacum/followers","following_url":"https://api.github.com/users/brainiacum/following{/other_user}","gists_url":"https://api.github.com/users/brainiacum/gists{/gist_id}","starred_url":"https://api.github.com/users/brainiacum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brainiacum/subscriptions","organizations_url":"https://api.github.com/users/brainiacum/orgs","repos_url":"https://api.github.com/users/brainiacum/repos","events_url":"https://api.github.com/users/brainiacum/events{/privacy}","received_events_url":"https://api.github.com/users/brainiacum/received_events","type":"Organization","site_admin":false},"repo":{"id":97937333,"name":"learnCpp","full_name":"brainiacum/learnCpp","owner":{"login":"brainiacum","id":30291376,"avatar_url":"https://avatars1.githubusercontent.com/u/30291376?v=4","gravatar_id":"","url":"https://api.github.com/users/brainiacum","html_url":"https://github.com/brainiacum","followers_url":"https://api.github.com/users/brainiacum/followers","following_url":"https://api.github.com/users/brainiacum/following{/other_user}","gists_url":"https://api.github.com/users/brainiacum/gists{/gist_id}","starred_url":"https://api.github.com/users/brainiacum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brainiacum/subscriptions","organizations_url":"https://api.github.com/users/brainiacum/orgs","repos_url":"https://api.github.com/users/brainiacum/repos","events_url":"https://api.github.com/users/brainiacum/events{/privacy}","received_events_url":"https://api.github.com/users/brainiacum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/brainiacum/learnCpp","description":"Practical tasks to learn C++","fork":false,"url":"https://api.github.com/repos/brainiacum/learnCpp","forks_url":"https://api.github.com/repos/brainiacum/learnCpp/forks","keys_url":"https://api.github.com/repos/brainiacum/learnCpp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brainiacum/learnCpp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brainiacum/learnCpp/teams","hooks_url":"https://api.github.com/repos/brainiacum/learnCpp/hooks","issue_events_url":"https://api.github.com/repos/brainiacum/learnCpp/issues/events{/number}","events_url":"https://api.github.com/repos/brainiacum/learnCpp/events","assignees_url":"https://api.github.com/repos/brainiacum/learnCpp/assignees{/user}","branches_url":"https://api.github.com/repos/brainiacum/learnCpp/branches{/branch}","tags_url":"https://api.github.com/repos/brainiacum/learnCpp/tags","blobs_url":"https://api.github.com/repos/brainiacum/learnCpp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brainiacum/learnCpp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brainiacum/learnCpp/git/refs{/sha}","trees_url":"https://api.github.com/repos/brainiacum/learnCpp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brainiacum/learnCpp/statuses/{sha}","languages_url":"https://api.github.com/repos/brainiacum/learnCpp/languages","stargazers_url":"https://api.github.com/repos/brainiacum/learnCpp/stargazers","contributors_url":"https://api.github.com/repos/brainiacum/learnCpp/contributors","subscribers_url":"https://api.github.com/repos/brainiacum/learnCpp/subscribers","subscription_url":"https://api.github.com/repos/brainiacum/learnCpp/subscription","commits_url":"https://api.github.com/repos/brainiacum/learnCpp/commits{/sha}","git_commits_url":"https://api.github.com/repos/brainiacum/learnCpp/git/commits{/sha}","comments_url":"https://api.github.com/repos/brainiacum/learnCpp/comments{/number}","issue_comment_url":"https://api.github.com/repos/brainiacum/learnCpp/issues/comments{/number}","contents_url":"https://api.github.com/repos/brainiacum/learnCpp/contents/{+path}","compare_url":"https://api.github.com/repos/brainiacum/learnCpp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brainiacum/learnCpp/merges","archive_url":"https://api.github.com/repos/brainiacum/learnCpp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brainiacum/learnCpp/downloads","issues_url":"https://api.github.com/repos/brainiacum/learnCpp/issues{/number}","pulls_url":"https://api.github.com/repos/brainiacum/learnCpp/pulls{/number}","milestones_url":"https://api.github.com/repos/brainiacum/learnCpp/milestones{/number}","notifications_url":"https://api.github.com/repos/brainiacum/learnCpp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brainiacum/learnCpp/labels{/name}","releases_url":"https://api.github.com/repos/brainiacum/learnCpp/releases{/id}","deployments_url":"https://api.github.com/repos/brainiacum/learnCpp/deployments","created_at":"2017-07-21T10:43:52Z","updated_at":"2017-07-21T10:43:52Z","pushed_at":"2017-09-04T10:25:57Z","git_url":"git://github.com/brainiacum/learnCpp.git","ssh_url":"git@github.com:brainiacum/learnCpp.git","clone_url":"https://github.com/brainiacum/learnCpp.git","svn_url":"https://github.com/brainiacum/learnCpp","homepage":null,"size":11,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"brainiacum:master","ref":"master","sha":"377cbba2fe1bd29f678c24c55b81e6834bf52004","user":{"login":"brainiacum","id":30291376,"avatar_url":"https://avatars1.githubusercontent.com/u/30291376?v=4","gravatar_id":"","url":"https://api.github.com/users/brainiacum","html_url":"https://github.com/brainiacum","followers_url":"https://api.github.com/users/brainiacum/followers","following_url":"https://api.github.com/users/brainiacum/following{/other_user}","gists_url":"https://api.github.com/users/brainiacum/gists{/gist_id}","starred_url":"https://api.github.com/users/brainiacum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brainiacum/subscriptions","organizations_url":"https://api.github.com/users/brainiacum/orgs","repos_url":"https://api.github.com/users/brainiacum/repos","events_url":"https://api.github.com/users/brainiacum/events{/privacy}","received_events_url":"https://api.github.com/users/brainiacum/received_events","type":"Organization","site_admin":false},"repo":{"id":97937333,"name":"learnCpp","full_name":"brainiacum/learnCpp","owner":{"login":"brainiacum","id":30291376,"avatar_url":"https://avatars1.githubusercontent.com/u/30291376?v=4","gravatar_id":"","url":"https://api.github.com/users/brainiacum","html_url":"https://github.com/brainiacum","followers_url":"https://api.github.com/users/brainiacum/followers","following_url":"https://api.github.com/users/brainiacum/following{/other_user}","gists_url":"https://api.github.com/users/brainiacum/gists{/gist_id}","starred_url":"https://api.github.com/users/brainiacum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brainiacum/subscriptions","organizations_url":"https://api.github.com/users/brainiacum/orgs","repos_url":"https://api.github.com/users/brainiacum/repos","events_url":"https://api.github.com/users/brainiacum/events{/privacy}","received_events_url":"https://api.github.com/users/brainiacum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/brainiacum/learnCpp","description":"Practical tasks to learn C++","fork":false,"url":"https://api.github.com/repos/brainiacum/learnCpp","forks_url":"https://api.github.com/repos/brainiacum/learnCpp/forks","keys_url":"https://api.github.com/repos/brainiacum/learnCpp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brainiacum/learnCpp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brainiacum/learnCpp/teams","hooks_url":"https://api.github.com/repos/brainiacum/learnCpp/hooks","issue_events_url":"https://api.github.com/repos/brainiacum/learnCpp/issues/events{/number}","events_url":"https://api.github.com/repos/brainiacum/learnCpp/events","assignees_url":"https://api.github.com/repos/brainiacum/learnCpp/assignees{/user}","branches_url":"https://api.github.com/repos/brainiacum/learnCpp/branches{/branch}","tags_url":"https://api.github.com/repos/brainiacum/learnCpp/tags","blobs_url":"https://api.github.com/repos/brainiacum/learnCpp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brainiacum/learnCpp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brainiacum/learnCpp/git/refs{/sha}","trees_url":"https://api.github.com/repos/brainiacum/learnCpp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brainiacum/learnCpp/statuses/{sha}","languages_url":"https://api.github.com/repos/brainiacum/learnCpp/languages","stargazers_url":"https://api.github.com/repos/brainiacum/learnCpp/stargazers","contributors_url":"https://api.github.com/repos/brainiacum/learnCpp/contributors","subscribers_url":"https://api.github.com/repos/brainiacum/learnCpp/subscribers","subscription_url":"https://api.github.com/repos/brainiacum/learnCpp/subscription","commits_url":"https://api.github.com/repos/brainiacum/learnCpp/commits{/sha}","git_commits_url":"https://api.github.com/repos/brainiacum/learnCpp/git/commits{/sha}","comments_url":"https://api.github.com/repos/brainiacum/learnCpp/comments{/number}","issue_comment_url":"https://api.github.com/repos/brainiacum/learnCpp/issues/comments{/number}","contents_url":"https://api.github.com/repos/brainiacum/learnCpp/contents/{+path}","compare_url":"https://api.github.com/repos/brainiacum/learnCpp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brainiacum/learnCpp/merges","archive_url":"https://api.github.com/repos/brainiacum/learnCpp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brainiacum/learnCpp/downloads","issues_url":"https://api.github.com/repos/brainiacum/learnCpp/issues{/number}","pulls_url":"https://api.github.com/repos/brainiacum/learnCpp/pulls{/number}","milestones_url":"https://api.github.com/repos/brainiacum/learnCpp/milestones{/number}","notifications_url":"https://api.github.com/repos/brainiacum/learnCpp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brainiacum/learnCpp/labels{/name}","releases_url":"https://api.github.com/repos/brainiacum/learnCpp/releases{/id}","deployments_url":"https://api.github.com/repos/brainiacum/learnCpp/deployments","created_at":"2017-07-21T10:43:52Z","updated_at":"2017-07-21T10:43:52Z","pushed_at":"2017-09-04T10:25:57Z","git_url":"git://github.com/brainiacum/learnCpp.git","ssh_url":"git@github.com:brainiacum/learnCpp.git","clone_url":"https://github.com/brainiacum/learnCpp.git","svn_url":"https://github.com/brainiacum/learnCpp","homepage":null,"size":11,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brainiacum/learnCpp/pulls/1"},"html":{"href":"https://github.com/brainiacum/learnCpp/pull/1"},"issue":{"href":"https://api.github.com/repos/brainiacum/learnCpp/issues/1"},"comments":{"href":"https://api.github.com/repos/brainiacum/learnCpp/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/brainiacum/learnCpp/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/brainiacum/learnCpp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brainiacum/learnCpp/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/brainiacum/learnCpp/statuses/0029086bba7cca93e95045f8196e42c7a7c52065"}},"author_association":"NONE"}}
{"actor":{"display_login":"IgorGorbunov20"}}