Pagini recente » Cod sursa (job #471266) | Cod sursa (job #1380046) | Cod sursa (job #1283475) | Cod sursa (job #2462634) | Borderou de evaluare (job #1511866)
Borderou de evaluare (job #1511866)
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 |
| 1 | 80ms | 488kb | Corect! | 20 |
| 2 | 80ms | 492kb | Corect! | 20 |
| 3 | 80ms | 488kb | Corect! | 20 |
| 4 | 80ms | 484kb | Corect! | 20 |
| 5 | 80ms | 492kb | Corect! | 20 |
| Punctaj total | 100 |