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

    
    printf ("Time for the kernel: %f ms\n", time);
    
    add(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);
    
    return 0;
}

    }
}

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

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