Pagini recente » Cod sursa (job #608576) | Borderou de evaluare (job #2173314) | Borderou de evaluare (job #141108) | Borderou de evaluare (job #1781962) | Borderou de evaluare (job #1550510)
Borderou de evaluare (job #1550510)
Raport evaluator
Compilare:
user.cpp: In function ‘void update(int, int)’:
user.cpp:13:33: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for (; x <= N; x += x^(x-1) & x)
^
user.cpp: In function ‘int query(int)’:
user.cpp:22:28: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for (; x; x -= x^(x-1) & x)
^
user.cpp: In function ‘int main()’:
user.cpp:73:11: warning: unused variable ‘diff’ [-Wunused-variable]
float diff=(float)t2-(float)t1;
^
user.cpp:34:36: 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);
^
user.cpp:35:38: 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);
^
user.cpp:37:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
^
user.cpp:40:27: 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 | 0ms | 332kb | Corect! | 10 | 10 |
2 | 0ms | 356kb | Corect! | 10 | 10 |
3 | 0ms | 312kb | Corect! | 10 | 10 |
4 | 0ms | 312kb | Corect! | 10 | 10 |
5 | 0ms | 324kb | Corect! | 10 | 10 |
6 | 0ms | 332kb | Corect! | 10 | 10 |
7 | 0ms | 348kb | Corect! | 10 | 10 |
8 | 84ms | 2624kb | Corect! | 10 | 0 |
9 | Depăşit | 1520kb | Time limit exceeded. | 0 |
10 | 84ms | 2620kb | Corect! | 10 |
Punctaj total | 70 |