Pagini recente » Borderou de evaluare (job #3247455) | Borderou de evaluare (job #2899153) | Borderou de evaluare (job #1311789) | Borderou de evaluare (job #2387855) | Borderou de evaluare (job #2493242)
Borderou de evaluare (job #2493242)
Raport evaluator
Compilare:
main.cpp: In function 'void update(int, int)':
main.cpp:20:30: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
for (; x <= N; x += x^(x-1) & x)
~~~~~~^~~
main.cpp: In function 'int query(int)':
main.cpp:26:25: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
for (; x; x -= x^(x-1) & x)
~~~~~~^~~
main.cpp: In function 'int main()':
main.cpp:34:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("scmax.in", "r", stdin);
^
main.cpp:36:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("scmax.out", "w", stdout);
^
main.cpp:37:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
^
main.cpp:39:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 3ms | 131kb | Corect! | 10 | 10 |
2 | 4ms | 262kb | Corect! | 10 | 10 |
3 | 2ms | 131kb | Corect! | 10 | 10 |
4 | 3ms | 131kb | Corect! | 10 | 10 |
5 | 3ms | 131kb | Corect! | 10 | 10 |
6 | 3ms | 131kb | Corect! | 10 | 10 |
7 | 4ms | 131kb | Corect! | 10 | 10 |
8 | 105ms | 2490kb | Corect! | 10 | 0 |
9 | 300ms | 1835kb | Time limit exceeded | 0 |
10 | 119ms | 2490kb | Corect! | 10 |
Punctaj total | 70 |