diff --git a/a3/program.c b/a3/program.c index 4d5c0a9..33201d9 100644 --- a/a3/program.c +++ b/a3/program.c @@ -9,6 +9,7 @@ int main() { scanf("%d",n); while(n!=0){ a[i]=n; + i++; count++; } //m = buildmaxheap(a, n);