     
     printf ("Time for the kernel: %f ms\n", time);
     
-    add(cpu_a, cpu_b, cpu_c, N);
+    add_cpu(cpu_a, cpu_b, cpu_c, N);
     for (int i = 0; i < N; i++) {
         printf("%d+%d=%d\n", cpu_a[i], cpu_b[i], cpu_c[i]);
     }
     
-    
-    check(cpu_c, gpu_c, N);
+    check(cpu_c, c, N);
     
     return 0;
 }

    }
}

void add(int *a, int *b, int *c, int N) {

    for (int i = 0; i < N; i++) {
        c[i] = a[i] + b[i];


    int flag = 0;
    for (int i = 0; i < N; i++) {
        if(gpu_c[i] != cpu_c[i]) {
            printf("Not Equal!");
            flag = 1;
            break;
