diff --git a/du6/program.c b/du6/program.c index 625f6c1..ac10b0c 100644 --- a/du6/program.c +++ b/du6/program.c @@ -13,6 +13,9 @@ int main(){ int pocet_mien=0; scanf("%d\n", &pocet); + if(pocet<1){ + puts("Nespravny vstup"); + } while(fgets(riadok,50,stdin)!=NULL && riadok[0]!='\n'){ if(riadok[strlen(riadok)-1]=='\n'){ riadok[strlen(riadok)-1]='\0';