Borderou de evaluare (job #1433615)

Utilizator valen.valentinValentin Valeanu valen.valentin Data 9 mai 2015 17:00:17
Problema Play With Strings Status done
Runda corectarea_bugurilor Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:17:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (j=1;j<=strlen(s+1);j++) t[s[j]]++; ^ user.cpp:17:48: warning: array subscript has type ‘char’ [-Wchar-subscripts] for (j=1;j<=strlen(s+1);j++) t[s[j]]++; ^ user.cpp:36:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (j=1;j<=strlen(s+1);j++){ ^ user.cpp:38:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (k=1;k<=strlen(ss+1);k++) ^ user.cpp:8:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("playwithstrings.in","r",stdin); ^ user.cpp:9:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("playwithstrings.out","w",stdout); ^ user.cpp:10:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:12:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&tip); ^ user.cpp:16:22: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s+1); bool ok=true; ^ user.cpp:32:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s%s\n",s+1,ss+1); ^ /tmp/ccYo5jSR.o: In function `main': user.cpp:(.text.startup+0x1bd): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
112ms260kbOK10
220ms260kbOK10
34ms256kbOK10
40ms252kbOK10
58ms260kbOK10
628ms260kbOK10
724ms260kbOK10
828ms252kbOK10
920ms260kbOK10
1020ms260kbOK10
Punctaj total100

Ceva nu functioneaza?