Borderou de evaluare (job #2177027)

Utilizator akaprosAna Kapros akapros Data 18 martie 2018 12:17:51
Problema Karma Status done
Runda Algoritmiada 2018 Runda PreONI Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:73:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(a[i] + 1); ^ In file included from /usr/include/c++/5/cstdio:42:0, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:46, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:73:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(a[i] + 1); ^ In file included from /usr/include/c++/5/cstdio:42:0, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:46, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:73:22: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(a[i] + 1); ^ In file included from /usr/include/c++/5/cstdio:42:0, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:46, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:47:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n", &n, &m); ^ user.cpp:73:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a[i] + 1); ^ /tmp/ccvi2pnu.o: In function `main': user.cpp:(.text.startup+0xb5): warning: the `gets' function is dangerous and should not be used.
Feedback Test Timp executie Memorie folosita Mesaj Punctaj/test
✓14ms2664kbOK!0
✓24ms2904kbOK!0
✗34ms2968kbOK!10
✗4Depăşit2616kbTime limit exceeded.0
✗5Depăşit2576kbTime limit exceeded.0
✗6Depăşit2728kbTime limit exceeded.0
✗7Depăşit2844kbTime limit exceeded.0
✗8Depăşit2588kbTime limit exceeded.0
✗9Depăşit2592kbTime limit exceeded.0
✗10Depăşit2888kbTime limit exceeded.0
✗114ms2828kbOK!10
✗124ms2772kbOK!10
Punctaj total30

Ceva nu functioneaza?