Borderou de evaluare (job #1354009)

Utilizator grimkidGafton Rares-Mihai grimkid Data 21 februarie 2015 15:01:31
Problema Algoritmul lui Euclid Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘euclid’: user.c:2:6: warning: type of ‘a’ defaults to ‘int’ [enabled by default] long euclid(a,b){ ^ user.c:2:6: warning: type of ‘b’ defaults to ‘int’ [enabled by default] user.c:3:13: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] if((a&b==0)||(b%a==0)) ^ user.c: In function ‘main’: user.c:14:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] fscanf(in,"%d\n",&n); ^ user.c:17:16: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] fscanf(in,"%d %d",&a,&b); ^ user.c:17:16: warning: format ‘%d’ expects argument of type ‘int *’, but argument 4 has type ‘long int *’ [-Wformat=] user.c:18:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(out,"%d\n",euclid(a,b)); ^ user.c:14:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d\n",&n); ^ user.c:17:22: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d %d",&a,&b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms172kbKilled by signal 11(SIGSEGV).00
20ms176kbKilled by signal 11(SIGSEGV).00
30ms176kbKilled by signal 11(SIGSEGV).0
40ms168kbKilled by signal 11(SIGSEGV).00
50ms172kbKilled by signal 11(SIGSEGV).00
60ms172kbKilled by signal 11(SIGSEGV).00
70ms172kbKilled by signal 11(SIGSEGV).00
80ms172kbKilled by signal 11(SIGSEGV).0
90ms168kbKilled by signal 11(SIGSEGV).0
100ms172kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?