Borderou de evaluare (job #2105487)

Utilizator stelian2000Stelian Chichirim stelian2000 Data 13 ianuarie 2018 14:19:39
Problema Virus Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:41:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("virus.in","r",stdin); ^ user.cpp:42:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("virus.out","w",stdout); ^ user.cpp:44:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n",&l,&n); ^ user.cpp:46:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(sir+1); ^ user.cpp:49:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&l1); ^ user.cpp:50:21: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(sir1+1); ^ /tmp/ccOLwqwd.o: In function `main': user.cpp:(.text.startup+0x96): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms380kbOK10
24ms272kbKilled by signal 11(SIGSEGV).0
38ms376kbKilled by signal 11(SIGSEGV).0
420ms6480kbKilled by signal 11(SIGSEGV).0
536ms12528kbKilled by signal 11(SIGSEGV).0
620ms6464kbKilled by signal 11(SIGSEGV).0
744ms12524kbKilled by signal 11(SIGSEGV).0
820ms6500kbKilled by signal 11(SIGSEGV).0
94ms1180kbKilled by signal 11(SIGSEGV).0
100ms756kbKilled by signal 11(SIGSEGV).0
Punctaj total10

Ceva nu functioneaza?