Borderou de evaluare (job #1359495)

Utilizator LauraALaura Antonache LauraA Data 24 februarie 2015 23:01:50
Problema Convertor Status done
Runda rosedu_cdl_2015 Compilator c | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:26:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘char (*)[255]’ [-Wformat=] fscanf(in, "%s", &word); ^ user.c:27:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘char (*)[255]’ [-Wformat=] fscanf(in, "%s", &word); ^ user.c:28:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘char (*)[255]’ [-Wformat=] fscanf(in, "%s", &word); ^ user.c:34:13: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration] if(strlen(word)==1) ^ user.c:34:16: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default] if(strlen(word)==1) ^ user.c:38:17: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘char (*)[255]’ [-Wformat=] fscanf(in, "%s", &word); ^ user.c:40:13: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration] else memcpy(word, word+1, strlen(word)-1); ^ user.c:40:18: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default] else memcpy(word, word+1, strlen(word)-1); ^ user.c:33:11: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(word[0]=='{') ^ user.c:41:12: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default] if(strlen(word)==1&&word[0]==':') ^ user.c:45:13: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘char (*)[255]’ [-Wformat=] fscanf(in, "%s", &word); ^ user.c:51:25: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default] if(word[strlen(word)-1]==':') ^ user.c:53:21: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default] memcpy(keys[i],word+1,strlen(word)-3); ^ user.c:59:21: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default] memcpy(keys[i],word+1,strlen(word)-2); ^ user.c:65:21: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default] memcpy(keys[i],word+1,strlen(word)); ^ user.c:72:25: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default] if(word[strlen(word)-1]==':') ^ user.c:74:21: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default]
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbOK10
2Depăşit300kbTime limit exceeded.0
30ms340kbOK10
40ms272kbOK10
50ms268kbIncorect0
60ms264kbIncorect0
7Depăşit288kbTime limit exceeded.0
80ms360kbKilled by signal 11(SIGSEGV).0
90ms356kbKilled by signal 11(SIGSEGV).0
100ms360kbKilled by signal 11(SIGSEGV).0
Punctaj total30

Ceva nu functioneaza?