Pagini recente » Borderou de evaluare (job #2407739) | Borderou de evaluare (job #3216655) | Borderou de evaluare (job #2147943) | Borderou de evaluare (job #180004) | Borderou de evaluare (job #1511468)
Borderou de evaluare (job #1511468)
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 | OK | 10 |
2 | 0ms | 448kb | OK | 10 |
3 | 4ms | 472kb | OK | 10 |
4 | 28ms | 548kb | OK | 10 |
5 | 68ms | 584kb | OK | 10 |
6 | 100ms | 700kb | OK | 10 |
7 | 112ms | 784kb | OK | 10 |
8 | 156ms | 836kb | OK | 10 |
9 | 160ms | 836kb | OK | 10 |
10 | 156ms | 840kb | OK | 10 |
Punctaj total | 100 |