Pagini recente » Borderou de evaluare (job #2026277) | Borderou de evaluare (job #977626) | Borderou de evaluare (job #1258174) | Borderou de evaluare (job #2525275) | Borderou de evaluare (job #1250048)
Borderou de evaluare (job #1250048)
Raport evaluator
Compilare:
user.cpp: In function ‘void update(int, int)’:
user.cpp:8:26: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for(;poz<=n;poz+=(poz&(poz-1)^poz))
^
user.cpp: In function ‘int query(int)’:
user.cpp:14:23: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for(;poz;poz-=(poz&(poz-1)^poz))
^
user.cpp: In function ‘int main()’:
user.cpp:20:32: 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:21:34: 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:23: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:27:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
user.cpp:33:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&op);
^
user.cpp:36:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&a,&b);
^
user.cpp:41:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&a,&b);
^
user.cpp:46:27: 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 | 248kb | Incorect | 0 |
2 | 0ms | 256kb | Incorect | 0 |
3 | 4ms | 272kb | Incorect | 0 |
4 | 28ms | 356kb | Incorect | 0 |
5 | 68ms | 388kb | Incorect | 0 |
6 | 108ms | 512kb | Incorect | 0 |
7 | 116ms | 584kb | Incorect | 0 |
8 | 168ms | 636kb | Incorect | 0 |
9 | 164ms | 640kb | Incorect | 0 |
10 | 168ms | 636kb | Incorect | 0 |
Punctaj total | 0 |