Pagini recente » Borderou de evaluare (job #1009266) | Borderou de evaluare (job #92316) | Borderou de evaluare (job #2086540) | Borderou de evaluare (job #3171741) | Borderou de evaluare (job #1961721)
Borderou de evaluare (job #1961721)
Raport evaluator
Compilare:
user.cpp: In function ‘void Add(int, int)’:
user.cpp:14:27: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define zeros(x) x^(x - 1)&x
^
user.cpp:34:33: note: in expansion of macro ‘zeros’
for (int i = poz; i <= n; i += zeros(i))
^
user.cpp: In function ‘int Sum(int)’:
user.cpp:14:27: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define zeros(x) x^(x - 1)&x
^
user.cpp:41:33: note: in expansion of macro ‘zeros’
for (int i = poz; i >= 1; i -= zeros(i))
^
user.cpp: In function ‘int main()’:
user.cpp:48:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("calafat.in", "r", stdin);
^
user.cpp:50:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
user.cpp:52:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i]);
^
user.cpp:56:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &Q[i].lf, &Q[i].rt);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 488kb | OK | 5 |
2 | 0ms | 484kb | OK | 5 |
3 | 0ms | 484kb | OK | 5 |
4 | 0ms | 492kb | OK | 5 |
5 | 24ms | 936kb | OK | 5 |
6 | 24ms | 936kb | OK | 5 |
7 | 40ms | 1168kb | OK | 5 |
8 | 44ms | 1284kb | OK | 5 |
9 | 44ms | 1284kb | OK | 5 |
10 | 68ms | 1672kb | OK | 5 |
11 | 80ms | 1944kb | OK | 5 |
12 | 100ms | 2260kb | OK | 5 |
13 | 96ms | 2340kb | OK | 5 |
14 | 96ms | 2128kb | OK | 5 |
15 | 300ms | 5328kb | Incorect | 0 |
16 | 304ms | 5492kb | Incorect | 0 |
17 | 288ms | 5180kb | OK | 5 |
18 | 296ms | 5332kb | Incorect | 0 |
19 | 304ms | 5724kb | Incorect | 0 |
20 | 296ms | 5724kb | Incorect | 0 |
Punctaj total | 75 |