Borderou de evaluare (job #2187509)

Utilizator ardutgamerAndrei Bancila ardutgamer Data 26 martie 2018 16:24:23
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/cclMI3Ox.o: In function `main': user.cpp:(.text.startup+0xe9): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms864kbKilled by signal 11(SIGSEGV).00
20ms856kbKilled by signal 11(SIGSEGV).0
30ms832kbKilled by signal 11(SIGSEGV).0
40ms876kbKilled by signal 11(SIGSEGV).0
50ms876kbKilled by signal 11(SIGSEGV).00
60ms860kbKilled by signal 11(SIGSEGV).00
70ms832kbKilled by signal 11(SIGSEGV).00
80ms872kbKilled by signal 11(SIGSEGV).00
90ms832kbKilled by signal 11(SIGSEGV).00
100ms860kbKilled by signal 11(SIGSEGV).00
Punctaj total0

Ceva nu functioneaza?