Pagini recente » Borderou de evaluare (job #1358894) | Borderou de evaluare (job #1061930) | Borderou de evaluare (job #2496698) | Borderou de evaluare (job #1765993) | Borderou de evaluare (job #1249558)
Borderou de evaluare (job #1249558)
Raport evaluator
Compilare:
user.cpp: In function ‘void update(int, int)’:
user.cpp:3:18: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define lp2(x) (x&(x-1)^x)
^
user.cpp:12:26: note: in expansion of macro ‘lp2’
for( ; p <= n ; p += lp2(p))
^
user.cpp: In function ‘int query(int)’:
user.cpp:3:18: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define lp2(x) (x&(x-1)^x)
^
user.cpp:20:21: note: in expansion of macro ‘lp2’
for( ; p ; p -= lp2(p))
^
user.cpp: In function ‘int main()’:
user.cpp:55:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("aib.in" , "r" , stdin);
^
user.cpp:56:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("aib.out", "w", stdout);
^
user.cpp:59:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
^
user.cpp:65:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&tmp);
^
user.cpp:72:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&op);
^
user.cpp:78:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&a,&b);
^
user.cpp:84:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&a,&b);
^
user.cpp:90:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 256kb | OK | 10 |
2 | 0ms | 260kb | OK | 10 |
3 | 4ms | 268kb | OK | 10 |
4 | 28ms | 348kb | OK | 10 |
5 | 68ms | 392kb | OK | 10 |
6 | 108ms | 508kb | OK | 10 |
7 | 116ms | 580kb | OK | 10 |
8 | 168ms | 644kb | OK | 10 |
9 | 168ms | 640kb | OK | 10 |
10 | 168ms | 636kb | OK | 10 |
Punctaj total | 100 |