Pagini recente » Borderou de evaluare (job #2035355) | Borderou de evaluare (job #2725865) | Borderou de evaluare (job #1317626) | Borderou de evaluare (job #1674531) | Borderou de evaluare (job #1511460)
Borderou de evaluare (job #1511460)
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 | 444kb | OK | 10 |
2 | 0ms | 448kb | OK | 10 |
3 | 4ms | 468kb | OK | 10 |
4 | 28ms | 548kb | OK | 10 |
5 | 68ms | 584kb | OK | 10 |
6 | 100ms | 708kb | Incorect | 0 |
7 | 108ms | 784kb | Incorect | 0 |
8 | 156ms | 836kb | Incorect | 0 |
9 | 152ms | 840kb | Incorect | 0 |
10 | 160ms | 832kb | Incorect | 0 |
Punctaj total | 50 |