Borderou de evaluare (job #2187510)

Utilizator ardutgamerAndrei Bancila ardutgamer Data 26 martie 2018 16:24:42
Problema Editor Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void transforma(char*)’: user.cpp:12:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 1 ; i < strlen(s) ; i++) ~~^~~~~~~~~~~ user.cpp: In function ‘int main()’: user.cpp:29:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s); ^~~~ In file included from /usr/include/c++/6/cstdio:42:0, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^~~~ user.cpp:29:15: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s); ^ In file included from /usr/include/c++/6/cstdio:42:0, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^~~~ user.cpp:31:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0 ; i < strlen(s) ; i++) ~~^~~~~~~~~~~ user.cpp:21:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("editor.in","r",stdin); ^ user.cpp:22:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("editor.out","w",stdout); ^ user.cpp:24:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&n); ^ user.cpp:29:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/cceAOaQ0.o: In function `main': user.cpp:(.text.startup+0xe7): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms868kbIncorect00
20ms840kbIncorect0
30ms840kbIncorect0
412ms836kbIncorect0
5Depăşit860kbTime limit exceeded.00
6Depăşit880kbTime limit exceeded.00
7Depăşit896kbTime limit exceeded.00
8Depăşit884kbTime limit exceeded.00
9Depăşit908kbTime limit exceeded.00
10Depăşit896kbTime limit exceeded.00
Punctaj total0

Ceva nu functioneaza?