This commit is contained in:
Yaroslav Orlianskyi 2022-03-09 14:21:23 +01:00
parent 6d9be1dc22
commit a644b3042f
2 changed files with 2 additions and 1 deletions

Binary file not shown.

View File

@ -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;