This commit is contained in:
Andrii Hermaniuk 2022-03-31 16:15:00 +02:00
parent c9af412810
commit b8d9b74eb7

View File

@ -30,7 +30,7 @@ int main(){
int d1,d2,d3; int d1,d2,d3;
int res=sscanf(start,"%d %d %d",&d1,&d2,&d3); int res=sscanf(start,"%d %d %d",&d1,&d2,&d3);
if(res!=3||d1<=0||d2<=0||d3<=0){ if(res!=3||d1<=0||d2<=0||d3<=1900){
printf("Neplatny datum.\n"); printf("Neplatny datum.\n");
while((*start)!='\n')start++; while((*start)!='\n')start++;
start++; start++;