diff --git a/du2/program b/du2/program index 9a7a3c6..17b913e 100755 Binary files a/du2/program and b/du2/program differ diff --git a/du2/program.c b/du2/program.c index ac327e9..3ce6af8 100644 --- a/du2/program.c +++ b/du2/program.c @@ -3,7 +3,7 @@ int main(){ int results[VELKOST_POLA]; - int max = results[0]; + int max; int i = 0; int first; int a = 0; @@ -12,6 +12,7 @@ int main(){ int r = scanf("%d",&value); if (r == 1){ results[i] = value; + max = results[0]; if(max < results[i]){ max = results[i]; first = i + 1;