From 28567fb539495c4a940798daeb2f96d439cd8a7b Mon Sep 17 00:00:00 2001 From: Oleksandr Hryshchenko Date: Thu, 15 Apr 2021 18:50:35 +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'du6/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du6/program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/du6/program.c b/du6/program.c index 7354032..45235fa 100644 --- a/du6/program.c +++ b/du6/program.c @@ -11,11 +11,11 @@ int main(){ int count = 0; char temp[50]; - for(int i =0; fgets(inputs[i], 50, stdin) != NULL; i++){ + for(int i = 0; fgets(inputs[i], 50, stdin) != NULL; i++){ if(i == 0){ freePlaces = strtol(inputs[0], &ptr, 10); if(freePlaces < 0 || !isdigit(freePlaces)){ - printf("Nespravny vstup\n"); + printf("Nespravny vstup %d\n", freePlaces); } } else if(i == 1 && !isalpha(inputs[i][0])){