Pagini recente » Borderou de evaluare (job #292214) | Borderou de evaluare (job #125910) | Borderou de evaluare (job #1604489) | Borderou de evaluare (job #490908) | Borderou de evaluare (job #2303847)
Borderou de evaluare (job #2303847)
Raport evaluator
Compilare:
main.cpp: In function 'void update(int, int)':
main.cpp:13: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:20: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:29: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:31: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:33:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
^
main.cpp:35: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 | 3ms | 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 | 114ms | 2621kb | Corect! | 10 | 0 |
9 | 303ms | 1835kb | Time limit exceeded | 0 |
10 | 113ms | 2490kb | Corect! | 10 |
Punctaj total | 70 |