Pagini recente » Borderou de evaluare (job #222600) | Borderou de evaluare (job #120847) | Borderou de evaluare (job #2068451) | Borderou de evaluare (job #1603382) | Borderou de evaluare (job #2601814)
Borderou de evaluare (job #2601814)
Raport evaluator
Compilare:
main.cpp: In function 'void update(int, int)':
main.cpp:23: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:41: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:61: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:63: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:67:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
^
main.cpp:73: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 | 2ms | 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 | 115ms | 2490kb | Corect! | 10 | 0 |
9 | 303ms | 1835kb | Time limit exceeded | 0 |
10 | 116ms | 2490kb | Corect! | 10 |
Punctaj total | 70 |