From 7b1cb9cf6787e1f3c175d1abf699a7837e2ec1b5 Mon Sep 17 00:00:00 2001 From: Pavlo Tverdyi Date: Thu, 9 Apr 2020 18:44:33 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20'du5/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du5/program.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/du5/program.c b/du5/program.c index 0e5ca9d..20ea98d 100644 --- a/du5/program.c +++ b/du5/program.c @@ -39,13 +39,14 @@ int keep(struct LIS *list){ } int del(struct LIS *list,int count){ - for(int i=0;i0;j--){ if(strcmp(list[i].fname,list[j].fname)==0 && strcmp(list[i].sname,list[j].sname)==0 && list[j].num!=-1) { - count--; + kount--; list[i].num+=list[j].num; list[j].num=-1; - + printf("\n%d %s %s\n",list[i].num, list[i].sname, list[i].fname); } } }