Pagini recente » Borderou de evaluare (job #2512269) | Borderou de evaluare (job #2989857) | Borderou de evaluare (job #2388986) | Borderou de evaluare (job #1501766) | Borderou de evaluare (job #1313225)
Borderou de evaluare (job #1313225)
Raport evaluator
Compilare:
user.cpp: In function ‘void Add(int, int)’:
user.cpp:2:32: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define zeros(x) ((x ^ (x - 1) & x))
^
user.cpp:12:35: note: in expansion of macro ‘zeros’
for(int i = x ; i <= n ; i += zeros(i) )
^
user.cpp: In function ‘int Compute(int)’:
user.cpp:2:32: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define zeros(x) ((x ^ (x - 1) & x))
^
user.cpp:20:30: note: in expansion of macro ‘zeros’
for(i = x ; i > 0 ; i -= zeros(i) )
^
user.cpp: In function ‘void Read()’:
user.cpp:28:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
user.cpp:33:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
^
user.cpp: In function ‘void Solve_it()’:
user.cpp:46:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &op, &a);
^
user.cpp:50:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &b);
^
user.cpp:56:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &b);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 252kb | OK | 10 |
| 2 | 0ms | 260kb | OK | 10 |
| 3 | 4ms | 276kb | OK | 10 |
| 4 | 28ms | 352kb | OK | 10 |
| 5 | 60ms | 388kb | OK | 10 |
| 6 | 92ms | 508kb | OK | 10 |
| 7 | 100ms | 580kb | OK | 10 |
| 8 | 144ms | 636kb | OK | 10 |
| 9 | 144ms | 636kb | OK | 10 |
| 10 | 140ms | 644kb | OK | 10 |
| Punctaj total | 100 |