Pagini recente » Borderou de evaluare (job #1596596) | Borderou de evaluare (job #1359621) | Borderou de evaluare (job #82975) | Borderou de evaluare (job #569536) | Borderou de evaluare (job #1324229)
Borderou de evaluare (job #1324229)
Raport evaluator
Compilare:
user.cpp: In function ‘void kmp()’:
user.cpp:35:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (di[i]==strlen(cuv)) match[i+1][nrcuv]=1;
^
user.cpp: In function ‘int main()’:
user.cpp:47:29: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[3001]’ [-Wformat=]
scanf("%s\n%d",&s,&n);
^
user.cpp:52:30: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[3002]’ [-Wformat=]
scanf("%s\n",&cuv);
^
user.cpp:56:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j=1;j<=strlen(s);j++)
^
user.cpp:41:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("carte.in","r",stdin);
^
user.cpp:42:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("carte.out","w",stdout);
^
user.cpp:44:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&t);
^
user.cpp:47:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s\n%d",&s,&n);
^
user.cpp:52:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s\n",&cuv);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 12ms | Depăşit | Memory limit exceeded. | 0 |
Punctaj total | 0 |