diff --git a/a1/program.c b/a1/program.c index d1afc61..81897c8 100644 --- a/a1/program.c +++ b/a1/program.c @@ -30,7 +30,7 @@ int main(){ int d1,d2,d3; int res=sscanf(start,"%d %d %d",&d1,&d2,&d3); - if(res==0){ + if(res!=3){ printf("Neplatny datum.\n"); while((*start)!='\n')start++; start++;