{"action":"created","comment":{"url":"https://api.github.com/repos/didolf/rea_hometasks/pulls/comments/174673242","pull_request_review_id":104070933,"id":174673242,"diff_hunk":"@@ -0,0 +1,201 @@\n+#include \"stdafx.h\"\r\n+#include <stdio.h>\r\n+#include <math.h>\r\n+#include <iostream>\r\n+void print_string_with_int(const char str[], int num) {\r\n+\tif (num != 0) {\r\n+\t\tprintf(str);\r\n+\t\tprintf(\" \");\r\n+\t\tprintf(\"%d\", num);\r\n+\t\tprintf(\"\\n\");\r\n+\t}\r\n+}\r\n+void print(const char str[]) {\r\n+\tprintf(str);\r\n+\tprintf(\"\\n\");\r\n+}\r\n+int scan_number() {\r\n+\tint errors = 1;\r\n+\twhile (true) {\r\n+\t\tchar str[100];\r\n+\t\tint length_of_arr = 0;\r\n+\t\tint sum = 0;\r\n+\t\tint char_detected = 0;\r\n+\t\tfor (char i = '\\0'; i != '\\n'; scanf_s(\"%c\", &i)) {\r\n+\t\t\tstr[length_of_arr] = i;\r\n+\t\t\tlength_of_arr++;\r\n+\t\t}\r\n+\t\tfor (int i = 0; i < length_of_arr; i++) {\r\n+\t\t\tint index = length_of_arr - 1 - i;\r\n+\t\t\tif (index == 0) { break; }\r","path":"home_task_number_three.txt","position":30,"original_position":30,"commit_id":"69ee3f58605a75670c004d502326c8c4cc603fdc","original_commit_id":"69ee3f58605a75670c004d502326c8c4cc603fdc","user":{"login":"gryphon-dk","id":19415880,"avatar_url":"https://avatars1.githubusercontent.com/u/19415880?v=4","gravatar_id":"","url":"https://api.github.com/users/gryphon-dk","html_url":"https://github.com/gryphon-dk","followers_url":"https://api.github.com/users/gryphon-dk/followers","following_url":"https://api.github.com/users/gryphon-dk/following{/other_user}","gists_url":"https://api.github.com/users/gryphon-dk/gists{/gist_id}","starred_url":"https://api.github.com/users/gryphon-dk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gryphon-dk/subscriptions","organizations_url":"https://api.github.com/users/gryphon-dk/orgs","repos_url":"https://api.github.com/users/gryphon-dk/repos","events_url":"https://api.github.com/users/gryphon-dk/events{/privacy}","received_events_url":"https://api.github.com/users/gryphon-dk/received_events","type":"User","site_admin":false},"body":"Это условие учтите в условии цикла","created_at":"2018-03-15T04:16:43Z","updated_at":"2018-03-15T04:31:13Z","html_url":"https://github.com/didolf/rea_hometasks/pull/2#discussion_r174673242","pull_request_url":"https://api.github.com/repos/didolf/rea_hometasks/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/didolf/rea_hometasks/pulls/comments/174673242"},"html":{"href":"https://github.com/didolf/rea_hometasks/pull/2#discussion_r174673242"},"pull_request":{"href":"https://api.github.com/repos/didolf/rea_hometasks/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/didolf/rea_hometasks/pulls/2","id":175101230,"html_url":"https://github.com/didolf/rea_hometasks/pull/2","diff_url":"https://github.com/didolf/rea_hometasks/pull/2.diff","patch_url":"https://github.com/didolf/rea_hometasks/pull/2.patch","issue_url":"https://api.github.com/repos/didolf/rea_hometasks/issues/2","number":2,"state":"open","locked":false,"title":"Домашнее задание 3","user":{"login":"didolf","id":33488113,"avatar_url":"https://avatars3.githubusercontent.com/u/33488113?v=4","gravatar_id":"","url":"https://api.github.com/users/didolf","html_url":"https://github.com/didolf","followers_url":"https://api.github.com/users/didolf/followers","following_url":"https://api.github.com/users/didolf/following{/other_user}","gists_url":"https://api.github.com/users/didolf/gists{/gist_id}","starred_url":"https://api.github.com/users/didolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/didolf/subscriptions","organizations_url":"https://api.github.com/users/didolf/orgs","repos_url":"https://api.github.com/users/didolf/repos","events_url":"https://api.github.com/users/didolf/events{/privacy}","received_events_url":"https://api.github.com/users/didolf/received_events","type":"User","site_admin":false},"body":"Первая версия.\r\nДобавлен улучшенный обработчик ошибок ввода.\r\nДобавлена функция print() как в питоне (ну почти).\r\n","created_at":"2018-03-14T22:20:42Z","updated_at":"2018-03-15T04:31:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5c08c6d1c0482da044df18802f75771e54ccd407","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/didolf/rea_hometasks/pulls/2/commits","review_comments_url":"https://api.github.com/repos/didolf/rea_hometasks/pulls/2/comments","review_comment_url":"https://api.github.com/repos/didolf/rea_hometasks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/didolf/rea_hometasks/issues/2/comments","statuses_url":"https://api.github.com/repos/didolf/rea_hometasks/statuses/69ee3f58605a75670c004d502326c8c4cc603fdc","head":{"label":"didolf:home_task_num_3","ref":"home_task_num_3","sha":"69ee3f58605a75670c004d502326c8c4cc603fdc","user":{"login":"didolf","id":33488113,"avatar_url":"https://avatars3.githubusercontent.com/u/33488113?v=4","gravatar_id":"","url":"https://api.github.com/users/didolf","html_url":"https://github.com/didolf","followers_url":"https://api.github.com/users/didolf/followers","following_url":"https://api.github.com/users/didolf/following{/other_user}","gists_url":"https://api.github.com/users/didolf/gists{/gist_id}","starred_url":"https://api.github.com/users/didolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/didolf/subscriptions","organizations_url":"https://api.github.com/users/didolf/orgs","repos_url":"https://api.github.com/users/didolf/repos","events_url":"https://api.github.com/users/didolf/events{/privacy}","received_events_url":"https://api.github.com/users/didolf/received_events","type":"User","site_admin":false},"repo":{"id":124048669,"name":"rea_hometasks","full_name":"didolf/rea_hometasks","owner":{"login":"didolf","id":33488113,"avatar_url":"https://avatars3.githubusercontent.com/u/33488113?v=4","gravatar_id":"","url":"https://api.github.com/users/didolf","html_url":"https://github.com/didolf","followers_url":"https://api.github.com/users/didolf/followers","following_url":"https://api.github.com/users/didolf/following{/other_user}","gists_url":"https://api.github.com/users/didolf/gists{/gist_id}","starred_url":"https://api.github.com/users/didolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/didolf/subscriptions","organizations_url":"https://api.github.com/users/didolf/orgs","repos_url":"https://api.github.com/users/didolf/repos","events_url":"https://api.github.com/users/didolf/events{/privacy}","received_events_url":"https://api.github.com/users/didolf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/didolf/rea_hometasks","description":"My home tasks. ","fork":false,"url":"https://api.github.com/repos/didolf/rea_hometasks","forks_url":"https://api.github.com/repos/didolf/rea_hometasks/forks","keys_url":"https://api.github.com/repos/didolf/rea_hometasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/didolf/rea_hometasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/didolf/rea_hometasks/teams","hooks_url":"https://api.github.com/repos/didolf/rea_hometasks/hooks","issue_events_url":"https://api.github.com/repos/didolf/rea_hometasks/issues/events{/number}","events_url":"https://api.github.com/repos/didolf/rea_hometasks/events","assignees_url":"https://api.github.com/repos/didolf/rea_hometasks/assignees{/user}","branches_url":"https://api.github.com/repos/didolf/rea_hometasks/branches{/branch}","tags_url":"https://api.github.com/repos/didolf/rea_hometasks/tags","blobs_url":"https://api.github.com/repos/didolf/rea_hometasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/didolf/rea_hometasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/didolf/rea_hometasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/didolf/rea_hometasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/didolf/rea_hometasks/statuses/{sha}","languages_url":"https://api.github.com/repos/didolf/rea_hometasks/languages","stargazers_url":"https://api.github.com/repos/didolf/rea_hometasks/stargazers","contributors_url":"https://api.github.com/repos/didolf/rea_hometasks/contributors","subscribers_url":"https://api.github.com/repos/didolf/rea_hometasks/subscribers","subscription_url":"https://api.github.com/repos/didolf/rea_hometasks/subscription","commits_url":"https://api.github.com/repos/didolf/rea_hometasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/didolf/rea_hometasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/didolf/rea_hometasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/didolf/rea_hometasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/didolf/rea_hometasks/contents/{+path}","compare_url":"https://api.github.com/repos/didolf/rea_hometasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/didolf/rea_hometasks/merges","archive_url":"https://api.github.com/repos/didolf/rea_hometasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/didolf/rea_hometasks/downloads","issues_url":"https://api.github.com/repos/didolf/rea_hometasks/issues{/number}","pulls_url":"https://api.github.com/repos/didolf/rea_hometasks/pulls{/number}","milestones_url":"https://api.github.com/repos/didolf/rea_hometasks/milestones{/number}","notifications_url":"https://api.github.com/repos/didolf/rea_hometasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/didolf/rea_hometasks/labels{/name}","releases_url":"https://api.github.com/repos/didolf/rea_hometasks/releases{/id}","deployments_url":"https://api.github.com/repos/didolf/rea_hometasks/deployments","created_at":"2018-03-06T08:48:52Z","updated_at":"2018-03-10T11:22:57Z","pushed_at":"2018-03-14T22:20:42Z","git_url":"git://github.com/didolf/rea_hometasks.git","ssh_url":"git@github.com:didolf/rea_hometasks.git","clone_url":"https://github.com/didolf/rea_hometasks.git","svn_url":"https://github.com/didolf/rea_hometasks","homepage":null,"size":19,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"didolf:master","ref":"master","sha":"d9b7f968a88319ceb79c4e70b43f12212d5e5856","user":{"login":"didolf","id":33488113,"avatar_url":"https://avatars3.githubusercontent.com/u/33488113?v=4","gravatar_id":"","url":"https://api.github.com/users/didolf","html_url":"https://github.com/didolf","followers_url":"https://api.github.com/users/didolf/followers","following_url":"https://api.github.com/users/didolf/following{/other_user}","gists_url":"https://api.github.com/users/didolf/gists{/gist_id}","starred_url":"https://api.github.com/users/didolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/didolf/subscriptions","organizations_url":"https://api.github.com/users/didolf/orgs","repos_url":"https://api.github.com/users/didolf/repos","events_url":"https://api.github.com/users/didolf/events{/privacy}","received_events_url":"https://api.github.com/users/didolf/received_events","type":"User","site_admin":false},"repo":{"id":124048669,"name":"rea_hometasks","full_name":"didolf/rea_hometasks","owner":{"login":"didolf","id":33488113,"avatar_url":"https://avatars3.githubusercontent.com/u/33488113?v=4","gravatar_id":"","url":"https://api.github.com/users/didolf","html_url":"https://github.com/didolf","followers_url":"https://api.github.com/users/didolf/followers","following_url":"https://api.github.com/users/didolf/following{/other_user}","gists_url":"https://api.github.com/users/didolf/gists{/gist_id}","starred_url":"https://api.github.com/users/didolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/didolf/subscriptions","organizations_url":"https://api.github.com/users/didolf/orgs","repos_url":"https://api.github.com/users/didolf/repos","events_url":"https://api.github.com/users/didolf/events{/privacy}","received_events_url":"https://api.github.com/users/didolf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/didolf/rea_hometasks","description":"My home tasks. ","fork":false,"url":"https://api.github.com/repos/didolf/rea_hometasks","forks_url":"https://api.github.com/repos/didolf/rea_hometasks/forks","keys_url":"https://api.github.com/repos/didolf/rea_hometasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/didolf/rea_hometasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/didolf/rea_hometasks/teams","hooks_url":"https://api.github.com/repos/didolf/rea_hometasks/hooks","issue_events_url":"https://api.github.com/repos/didolf/rea_hometasks/issues/events{/number}","events_url":"https://api.github.com/repos/didolf/rea_hometasks/events","assignees_url":"https://api.github.com/repos/didolf/rea_hometasks/assignees{/user}","branches_url":"https://api.github.com/repos/didolf/rea_hometasks/branches{/branch}","tags_url":"https://api.github.com/repos/didolf/rea_hometasks/tags","blobs_url":"https://api.github.com/repos/didolf/rea_hometasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/didolf/rea_hometasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/didolf/rea_hometasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/didolf/rea_hometasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/didolf/rea_hometasks/statuses/{sha}","languages_url":"https://api.github.com/repos/didolf/rea_hometasks/languages","stargazers_url":"https://api.github.com/repos/didolf/rea_hometasks/stargazers","contributors_url":"https://api.github.com/repos/didolf/rea_hometasks/contributors","subscribers_url":"https://api.github.com/repos/didolf/rea_hometasks/subscribers","subscription_url":"https://api.github.com/repos/didolf/rea_hometasks/subscription","commits_url":"https://api.github.com/repos/didolf/rea_hometasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/didolf/rea_hometasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/didolf/rea_hometasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/didolf/rea_hometasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/didolf/rea_hometasks/contents/{+path}","compare_url":"https://api.github.com/repos/didolf/rea_hometasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/didolf/rea_hometasks/merges","archive_url":"https://api.github.com/repos/didolf/rea_hometasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/didolf/rea_hometasks/downloads","issues_url":"https://api.github.com/repos/didolf/rea_hometasks/issues{/number}","pulls_url":"https://api.github.com/repos/didolf/rea_hometasks/pulls{/number}","milestones_url":"https://api.github.com/repos/didolf/rea_hometasks/milestones{/number}","notifications_url":"https://api.github.com/repos/didolf/rea_hometasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/didolf/rea_hometasks/labels{/name}","releases_url":"https://api.github.com/repos/didolf/rea_hometasks/releases{/id}","deployments_url":"https://api.github.com/repos/didolf/rea_hometasks/deployments","created_at":"2018-03-06T08:48:52Z","updated_at":"2018-03-10T11:22:57Z","pushed_at":"2018-03-14T22:20:42Z","git_url":"git://github.com/didolf/rea_hometasks.git","ssh_url":"git@github.com:didolf/rea_hometasks.git","clone_url":"https://github.com/didolf/rea_hometasks.git","svn_url":"https://github.com/didolf/rea_hometasks","homepage":null,"size":19,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/didolf/rea_hometasks/pulls/2"},"html":{"href":"https://github.com/didolf/rea_hometasks/pull/2"},"issue":{"href":"https://api.github.com/repos/didolf/rea_hometasks/issues/2"},"comments":{"href":"https://api.github.com/repos/didolf/rea_hometasks/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/didolf/rea_hometasks/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/didolf/rea_hometasks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/didolf/rea_hometasks/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/didolf/rea_hometasks/statuses/69ee3f58605a75670c004d502326c8c4cc603fdc"}},"author_association":"OWNER"}}
{"actor":{"display_login":"gryphon-dk"}}