Pagini recente » Borderou de evaluare (job #1530127) | Monitorul de evaluare | Monitorul de evaluare | Borderou de evaluare (job #2752325) | Borderou de evaluare (job #1511446)
Borderou de evaluare (job #1511446)
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 |
| 1 | 0ms | 452kb | Incorect | 0 |
| 2 | 0ms | 448kb | Incorect | 0 |
| 3 | 4ms | 472kb | Incorect | 0 |
| 4 | 28ms | 552kb | Incorect | 0 |
| 5 | 64ms | 592kb | Incorect | 0 |
| 6 | 92ms | 704kb | Incorect | 0 |
| 7 | 104ms | 784kb | Incorect | 0 |
| 8 | 144ms | 836kb | Incorect | 0 |
| 9 | 152ms | 840kb | Incorect | 0 |
| 10 | 148ms | 836kb | Incorect | 0 |
| Punctaj total | 0 |