Run Code | API | Code Wall | Misc | Feedback | Login | Theme | Privacy | Patreon |
Working except for the thread part. LULError(s): source_file.c: In function ‘main’: source_file.c:46:4: error: unknown type name ‘thread_info’ thread_info info[k]; //structs to be passed ^ source_file.c:46:16: error: unused variable ‘info’ [-Werror=unused-variable] thread_info info[k]; //structs to be passed ^ source_file.c:45:14: error: unused variable ‘thread’ [-Werror=unused-variable] pthread_t thread[k]; //Thread variables ^ source_file.c:72:17: error: ‘thread_info’ undeclared (first use in this function) thread_info.shape = i; ^ source_file.c:72:17: note: each undeclared identifier is reported only once for each function it appears in source_file.c:74:37: error: ‘thread’ undeclared (first use in this function) if (pthread_create(&thread[i], NULL, &compute_C_ij, (void *)&info[i+j]) != 0) { ^ source_file.c:74:78: error: ‘info’ undeclared (first use in this function) if (pthread_create(&thread[i], NULL, &compute_C_ij, (void *)&info[i+j]) != 0) { ^ source_file.c:51:8: error: variable ‘b’ set but not used [-Werror=unused-but-set-variable] double b[16][18]; // arrays ^ source_file.c:50:8: error: variable ‘a’ set but not used [-Werror=unused-but-set-variable] double a[18][16]; //arrays ^ cc1: all warnings being treated as errors |
λ
.NET NoSQL database for rapid development
|