Borderou de evaluare (job #1299639)

Utilizator popa.andreiPopa Andrei popa.andrei Data 23 decembrie 2014 19:23:47
Problema Bunicu Status done
Runda Happy Birthday Infoarena 2014 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void xorF(char*)’: user.cpp:11:44: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] nr2[i] = (nr1[i] - '0') ^ (nr2[i] - '0') + '0'; ^ user.cpp: In function ‘void andF()’: user.cpp:17:44: warning: suggest parentheses around ‘+’ in operand of ‘&’ [-Wparentheses] nr3[i] = (nr1[i] - '0') & (nr3[i] - '0') + '0'; ^ user.cpp: In function ‘int main()’: user.cpp:20:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bunicu.in","r",stdin); ^ user.cpp:21:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bunicu.out","w",stdout); ^ user.cpp:32:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (nr1); ^ /tmp/ccGx1a0w.o: In function `main': user.cpp:(.text.startup+0xea): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
14ms428kbBA NUUUU!!!00
24ms428kbBA NUUUU!!!0
34ms428kbBA NUUUU!!!0
412ms428kbA BA DA!!!20
532ms432kbA BA DA!!!20
Punctaj total0

Ceva nu functioneaza?