Borderou de evaluare (job #1465049)

Utilizator SilviuIIon Silviu SilviuI Data 26 iulie 2015 13:51:29
Problema Dinti Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:43:24: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] if ((i>>j)&1==1) uhash[i-put2[j]]=1; ^ user.cpp:26:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dinti.in","r",stdin); ^ user.cpp:27:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dinti.out","w",stdout); ^ user.cpp:28:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d",&n,&m,&k); gets(s); ^ user.cpp:28:36: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d",&n,&m,&k); gets(s); ^ user.cpp:29:10: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s+1); curent=0; put2[0]=1; ^ user.cpp:46:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s+1); curent=0; ^ /tmp/ccQO51Io.o: In function `main': user.cpp:(.text.startup+0x7a): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms432kbKilled by signal 11(SIGSEGV).0
20ms444kbKilled by signal 11(SIGSEGV).0
30ms536kbKilled by signal 11(SIGSEGV).0
40ms824kbKilled by signal 11(SIGSEGV).0
54ms1308kbKilled by signal 11(SIGSEGV).0
64ms1384kbKilled by signal 11(SIGSEGV).0
74ms1384kbKilled by signal 11(SIGSEGV).0
84ms1384kbKilled by signal 11(SIGSEGV).0
94ms1384kbKilled by signal 11(SIGSEGV).0
104ms1388kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?