Borderou de evaluare (job #1299626)

Utilizator popa.andreiPopa Andrei popa.andrei Data 23 decembrie 2014 19:16:07
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:29: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:30: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:40:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (nr1); ^ /tmp/cce2dmCT.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
14ms432kbBA NUUUU!!!00
24ms436kbBA NUUUU!!!0
34ms432kbBA NUUUU!!!0
48ms432kbBA NUUUU!!!0
520ms436kbA BA DA!!!20
Punctaj total0

Ceva nu functioneaza?