fix nacitavania poslednej hodnoty

This commit is contained in:
Aleš Novysedlák 2025-02-25 09:57:58 +01:00
parent 60b116ec58
commit 6e06b65a5b

View File

@ -15,7 +15,7 @@ int main() {
int max_number_user_pair[2] = {0,0};
int starting_index = 0;
while(starting_index<string_index) {
while (loading_string[iterating_index] != ' ') {
while (loading_string[iterating_index] != ' ' && loading_string[iterating_index] != EOF) {
iterating_index++;
}
iterating_index++;