Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Nearly working

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.13 sec, absolute service time: 0,21 sec 
fork mode |  history  | discussion
Error(s):
source_file.c: In function ‘main’:
source_file.c:52:11: error: unused variable ‘info’ [-Werror=unused-variable]
    thinfo info[k]; //structs to be passed
           ^
source_file.c:51:14: error: unused variable ‘thread’ [-Werror=unused-variable]
    pthread_t thread[k]; //Thread variables
              ^
source_file.c:75:17: error: ‘info’ undeclared (first use in this function)
                 info[k].row = i; 
                 ^
source_file.c:75:17: note: each undeclared identifier is reported only once for each function it appears in
source_file.c:77:37: error: ‘thread’ undeclared (first use in this function)
                 if (pthread_create(&thread[k], NULL, &compute_C_ij, (void *)&info[k]) != 0) {                
                                     ^
cc1: all warnings being treated as errors

        

    
                
λ
.NET NoSQL database for rapid development