Pagini recente » Borderou de evaluare (job #499233) | Borderou de evaluare (job #661899) | Borderou de evaluare (job #2578089) | Borderou de evaluare (job #1009940) | Borderou de evaluare (job #1263680)
Borderou de evaluare (job #1263680)
Raport evaluator
Compilare:
user.c: In function ‘main’:
user.c:8:2: warning: missing braces around initializer [-Wmissing-braces]
char c[MAX][MAX] = {0}, *temp, *temp2;
^
user.c:8:2: warning: (near initialization for ‘c[0]’) [-Wmissing-braces]
user.c:16:3: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘char (*)[101]’ [-Wformat=]
fscanf(f,"%s",&c[i]);
^
user.c:27:3: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
temp = (char*)malloc(m*sizeof(char));
^
user.c:27:17: warning: incompatible implicit declaration of built-in function ‘malloc’ [enabled by default]
temp = (char*)malloc(m*sizeof(char));
^
user.c:34:3: warning: implicit declaration of function ‘strstr’ [-Wimplicit-function-declaration]
if (strstr(c[i],temp) == 0)
^
user.c:34:7: warning: incompatible implicit declaration of built-in function ‘strstr’ [enabled by default]
if (strstr(c[i],temp) == 0)
^
user.c:44:3: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
free(temp);
^
user.c:44:3: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
user.c:51:17: warning: incompatible implicit declaration of built-in function ‘malloc’ [enabled by default]
temp = (char*)malloc(m*sizeof(char));
^
user.c:66:7: warning: incompatible implicit declaration of built-in function ‘strstr’ [enabled by default]
if (strstr(temp2,temp) == 0)
^
user.c:76:3: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free(temp);
^
user.c:12:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d",&n,&m);
^
user.c:16:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%s",&c[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 288kb | Incorect | 0 |
2 | 0ms | 288kb | Incorect | 0 |
3 | 0ms | 276kb | Incorect | 0 |
4 | 0ms | 284kb | Incorect | 0 |
5 | 0ms | 284kb | Incorect | 0 |
6 | 0ms | 284kb | Incorect | 0 |
7 | 0ms | 288kb | Incorect | 0 |
8 | 0ms | 288kb | Incorect | 0 |
9 | 0ms | 288kb | Incorect | 0 |
10 | 0ms | 288kb | Incorect | 0 |
Punctaj total | 0 |