Borderou de evaluare (job #1299619)

Utilizator popa.andreiPopa Andrei popa.andrei Data 23 decembrie 2014 19:13:04
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:10: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:16: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:27: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:28: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:38:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (nr1); ^ /tmp/ccWrFAiS.o: In function `main': user.cpp:(.text.startup+0xab): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
14ms428kbBA NUUUU!!!00
24ms424kbBA NUUUU!!!0
34ms424kbBA NUUUU!!!0
48ms424kbBA NUUUU!!!0
520ms420kbA BA DA!!!20
Punctaj total0

Ceva nu functioneaza?