Borderou de evaluare (job #1299429)

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

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void xorF()’: user.cpp:7:22: error: ‘strlen’ was not declared in this scope int len = strlen(nr1); ^ user.cpp:9:44: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] nr2[i] = (nr1[i] - '0') ^ (nr2[i] - '0') + '0'; ^ user.cpp: In function ‘int main()’: user.cpp:14: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:15: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:25:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (nr1); ^

Ceva nu functioneaza?