Borderou de evaluare (job #1863440)

Utilizator rebound212Mihnea Savu rebound212 Data 30 ianuarie 2017 21:48:20
Problema Datorii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void update(int, int, int)’: user.cpp:2:27: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeroes(x) (x^(x-1)&x) ^ user.cpp:7:26: note: in expansion of macro ‘zeroes’ for (int i=x; i<= n; i+=zeroes(i)) ^ user.cpp: In function ‘int query(int)’: user.cpp:2:27: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeroes(x) (x^(x-1)&x) ^ user.cpp:17:26: note: in expansion of macro ‘zeroes’ for(int i=x; i>0; i-=zeroes(i)) ^ user.cpp: In function ‘int main()’: user.cpp:25:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("datorii.in","r",stdin); ^ user.cpp:26:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("datorii.out","w",stdout); ^ user.cpp:27:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&n,&m); ^ user.cpp:30:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ",&x); ^ user.cpp:35:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &op); ^ user.cpp:38:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&day,&value); ^ user.cpp:43:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&left,&right); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
188ms320kbCorect!20
288ms324kbCorect!20
388ms316kbCorect!20
488ms320kbCorect!20
588ms320kbCorect!20
Punctaj total100

Ceva nu functioneaza?