Borderou de evaluare (job #1350345)

Utilizator george.ioana1995Ioana Alexandru george.ioana1995 Data 20 februarie 2015 19:25:54
Problema Convertor Status done
Runda rosedu_cdl_2015 Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘sterge’: user.c:30:3: warning: statement with no effect [-Wunused-value] for(i >0; ((s[i] == ' ') || (s[i] =='\t'));--i) ^ user.c: In function ‘main’: user.c:46:5: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration] char* cuv=malloc( sizeof(char) * (1014+ 1 ) ); ^ user.c:46:15: warning: incompatible implicit declaration of built-in function ‘malloc’ [enabled by default] char* cuv=malloc( sizeof(char) * (1014+ 1 ) ); ^ user.c:56:9: warning: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] exit(1); ^ user.c:56:9: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default] user.c:62:9: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default] exit(1); ^ user.c:75:9: warning: implicit declaration of function ‘strdup’ [-Wimplicit-function-declaration] c=strdup(cuv); ^ user.c:75:10: warning: assignment makes pointer from integer without a cast [enabled by default] c=strdup(cuv); ^ user.c:95:14: warning: assignment makes pointer from integer without a cast [enabled by default] c=strdup(cuv); ^ user.c:100:5: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration] free(cuv); ^ user.c:100:5: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default] user.c:49:9: warning: unused variable ‘k’ [-Wunused-variable] int k; ^ user.c:70:14: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] fgets(s,2014,f); ^ user.c:90:19: warning: ‘ok’ may be used uninitialized in this function [-Wmaybe-uninitialized] if(ok){fputs(cap,g);ok=0;} ^ In file included from /usr/include/stdio.h:934:0, from user.c:1: In function ‘fgets’, inlined from ‘main’ at user.c:70:14: /usr/include/i386-linux-gnu/bits/stdio2.h:253:2: warning: call to ‘__fgets_chk_warn’ declared with attribute warning: fgets called with bigger size than length of destination buffer [enabled by default] return __fgets_chk_warn (__s, __bos (__s), __n, __stream); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms200kbKilled by signal 11(SIGSEGV).0
20ms200kbKilled by signal 11(SIGSEGV).0
30ms200kbKilled by signal 11(SIGSEGV).0
40ms200kbKilled by signal 11(SIGSEGV).0
50ms204kbKilled by signal 11(SIGSEGV).0
60ms200kbKilled by signal 11(SIGSEGV).0
70ms204kbKilled by signal 11(SIGSEGV).0
80ms200kbKilled by signal 11(SIGSEGV).0
90ms204kbKilled by signal 11(SIGSEGV).0
100ms200kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?