diff --git a/case1 b/case1 new file mode 100644 index 0000000000000000000000000000000000000000..47455a677efd36497f1f8ce60bc4b8c8ee918321 --- /dev/null +++ b/case1 @@ -0,0 +1,2 @@ +4 +10 1 4 7 \ No newline at end of file diff --git a/mergesort.c b/mergesort.c index 2767ef6caed975832409cdb4717764d326d125e9..1185267936d027adfd879e9b911594de9b576f6f 100644 --- a/mergesort.c +++ b/mergesort.c @@ -42,7 +42,7 @@ int main(int argc, char *argv[]) scanf("%d", &n); int *arr = (int*) malloc(sizeof(int) * (n + 1)); - for (i = 0; i < 8; ++i) + for (i = 0; i < n; ++i) { scanf("%d", &arr[i]); } diff --git a/mpi_hostfile b/mpi_hostfile index 5a004242a6df9d620a3a058335b5f4e01b8b23da..2441373bc37c202811a0d4e4ba0d6124963703a6 100644 --- a/mpi_hostfile +++ b/mpi_hostfile @@ -1,9 +1,9 @@ #daftar host localhost -167.205.35.26 -#167.205.35.28 -#167.205.35.29 -#167.205.35.30 +#167.205.35.26 +167.205.35.28 +167.205.35.29 +167.205.35.30 #167.205.35.31 #167.205.35.32 #167.205.35.33 diff --git a/sort b/sort index 072c9e25fc05d1db8c7c998d10447d8565a712e8..21dd03803e7224f096748d72f4f26a482cdc5cd7 100755 Binary files a/sort and b/sort differ