Cv2 commit
This commit is contained in:
parent
16ba1cb4f4
commit
3de30c9468
@ -7,14 +7,13 @@ int main(){
|
||||
int count = 0;
|
||||
int max_num = 0;
|
||||
int input;
|
||||
int winner_index = 0;
|
||||
|
||||
while (count < FIELD_SIZE) {
|
||||
if (scanf("%d", &input) != 1) {
|
||||
break;
|
||||
}
|
||||
if (input < 0) {
|
||||
printf("Chyba: Málo platných hodnôt.\n")
|
||||
printf("Chyba: Málo platných hodnôt.\n");
|
||||
break;
|
||||
}
|
||||
field[count] = input;
|
||||
@ -36,4 +35,4 @@ int main(){
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user