Borderou de evaluare (job #1425077)

Utilizator ialexia_ioanaAlexia Ichim ialexia_ioana Data 26 aprilie 2015 16:47:02
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)’: user.cpp:9:28: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] for( ; poz<=n; poz+=poz&(poz-1)^poz) ^ user.cpp: In function ‘int query(int)’: user.cpp:15:25: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] for( ; poz; poz-=poz&(poz-1)^poz) ^ user.cpp: In function ‘int main()’: user.cpp:24:38: 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:25:40: 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:26: 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:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &c); ^ user.cpp:35:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &tip, &a, &b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
176ms304kbCorect!20
276ms304kbCorect!20
376ms308kbCorect!20
476ms300kbCorect!20
576ms304kbCorect!20
Punctaj total100

Ceva nu functioneaza?