Borderou de evaluare (job #2211091)

Utilizator memecoinMeme Coin memecoin Data 9 iunie 2018 13:12:04
Problema Secventa Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:30:2: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s); ^~~~ In file included from user.cpp:1:0: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^~~~ user.cpp:30:8: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s); ^ In file included from user.cpp:1:0: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^~~~ user.cpp:22:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("secventa.in", "r", stdin); ^ user.cpp:23:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("secventa.out", "w", stdout); ^ user.cpp:25:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &n, &k); ^ user.cpp:30:9: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ user.cpp:71:8: warning: ‘bestOcc’ may be used uninitialized in this function [-Wmaybe-uninitialized] printf("%d %d %d", bestOcc + 1, bestOcc + k, best); ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/cceQZMHy.o: In function `main': user.cpp:(.text.startup+0x65): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms2892kbOK10
20ms2976kbOK10
38ms5152kbOK10
48ms5156kbOK10
58ms5156kbOK10
612ms5208kbOK10
716ms5524kbOK10
824ms5912kbOK10
936ms6308kbOK10
1044ms6692kbOK10
Punctaj total100

Ceva nu functioneaza?