Pagini recente » Borderou de evaluare (job #2276328) | Borderou de evaluare (job #2287901) | Borderou de evaluare (job #325516) | Borderou de evaluare (job #2393905) | Borderou de evaluare (job #1961725)
Borderou de evaluare (job #1961725)
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 ‘long long 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 | 492kb | OK | 5 |
3 | 0ms | 488kb | OK | 5 |
4 | 0ms | 492kb | OK | 5 |
5 | 36ms | 1092kb | OK | 5 |
6 | 32ms | 1084kb | OK | 5 |
7 | 48ms | 1404kb | OK | 5 |
8 | 56ms | 1556kb | OK | 5 |
9 | 60ms | 1560kb | OK | 5 |
10 | 88ms | 2068kb | OK | 5 |
11 | 108ms | 2420kb | OK | 5 |
12 | 128ms | 2800kb | OK | 5 |
13 | 128ms | 2888kb | OK | 5 |
14 | 128ms | 2672kb | OK | 5 |
15 | 400ms | 6892kb | OK | 5 |
16 | 408ms | 7056kb | OK | 5 |
17 | 396ms | 6732kb | OK | 5 |
18 | 408ms | 6892kb | OK | 5 |
19 | 408ms | 7288kb | OK | 5 |
20 | 400ms | 7284kb | OK | 5 |
Punctaj total | 100 |