Borderou de evaluare (job #1511866)

Utilizator serbanSlincu Serban serban Data 27 octombrie 2015 11:19:21
Problema Datorii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void add(int, int)’: user.cpp:2:31: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeroes(x) x ^ (x - 1) & x ^ user.cpp:12:16: note: in expansion of macro ‘zeroes’ poz += zeroes(poz); ^ user.cpp: In function ‘int sum(int)’: user.cpp:18:12: warning: statement has no effect [-Wunused-value] for(poz; poz > 0; poz -= zeroes(poz)) ^ user.cpp:2:31: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeroes(x) x ^ (x - 1) & x ^ user.cpp:18:30: note: in expansion of macro ‘zeroes’ for(poz; poz > 0; poz -= zeroes(poz)) ^ user.cpp: In function ‘int main()’: user.cpp:29:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d %d", &n, &m); ^ user.cpp:31:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", &x); ^ user.cpp:37:44: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d %d %d", &tip, &a, &b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
180ms488kbCorect!20
280ms492kbCorect!20
380ms488kbCorect!20
480ms484kbCorect!20
580ms492kbCorect!20
Punctaj total100

Ceva nu functioneaza?