Borderou de evaluare (job #1511460)

Utilizator serbanSlincu Serban serban Data 26 octombrie 2015 19:48:47
Problema Arbori indexati binar Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘void adaug(int, int)’: user.cpp:2:31: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeroes(x) x ^ (x - 1) & x ^ user.cpp:10:37: note: in expansion of macro ‘zeroes’ for(int i = where; i <= n; i += zeroes(i)) { ^ user.cpp: In function ‘int calc(int)’: user.cpp:17: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:17:30: note: in expansion of macro ‘zeroes’ for(poz; poz > 0; poz -= zeroes(poz)) ^ user.cpp: In function ‘int main()’: user.cpp:39: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:41: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:47:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", &tip); ^ user.cpp:49:39: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d %d", &a, &b); ^ user.cpp:53:39: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d %d", &a, &b); ^ user.cpp:57:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", &a); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms444kbOK10
20ms448kbOK10
34ms468kbOK10
428ms548kbOK10
568ms584kbOK10
6100ms708kbIncorect0
7108ms784kbIncorect0
8156ms836kbIncorect0
9152ms840kbIncorect0
10160ms832kbIncorect0
Punctaj total50

Ceva nu functioneaza?