Pagini recente » Borderou de evaluare (job #247929) | Borderou de evaluare (job #3032027) | Borderou de evaluare (job #1960577) | Borderou de evaluare (job #3220744) | Borderou de evaluare (job #1250102)
Borderou de evaluare (job #1250102)
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 | 252kb | OK | 10 |
2 | 0ms | 256kb | OK | 10 |
3 | 8ms | 272kb | OK | 10 |
4 | 28ms | 348kb | OK | 10 |
5 | 76ms | 388kb | OK | 10 |
6 | 120ms | 504kb | OK | 10 |
7 | 124ms | 584kb | OK | 10 |
8 | 184ms | 640kb | OK | 10 |
9 | 180ms | 644kb | OK | 10 |
10 | 180ms | 636kb | OK | 10 |
Punctaj total | 100 |