Borderou de evaluare (job #2072631)

Utilizator Consti.001FMI Dranca Constantin Consti.001 Data 21 noiembrie 2017 23:39:16
Problema A+B Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c:12:1: error: unknown type name ‘pthread_mutex_t’ pthread_mutex_t mtx; ^ user.c: In function ‘decrease_count’: user.c:20:2: warning: implicit declaration of function ‘pthread_mutex_lock’ [-Wimplicit-function-declaration] pthread_mutex_lock(&mtx); ^ user.c:22:2: warning: implicit declaration of function ‘pthread_mutex_unlock’ [-Wimplicit-function-declaration] pthread_mutex_unlock(&mtx); ^ user.c: In function ‘main’: user.c:56:2: warning: implicit declaration of function ‘pthread_mutex_init’ [-Wimplicit-function-declaration] if(pthread_mutex_init(&mtx,NULL)) ^ user.c:62:2: warning: implicit declaration of function ‘pthread_mutex_destroy’ [-Wimplicit-function-declaration] pthread_mutex_destroy(&mtx); ^ user.c:54:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^

Ceva nu functioneaza?