Pagini recente » Borderou de evaluare (job #1508767) | Borderou de evaluare (job #666782) | Borderou de evaluare (job #3210418) | Borderou de evaluare (job #1689138) | Borderou de evaluare (job #1425102)
Borderou de evaluare (job #1425102)
Raport evaluator
Compilare:
user.cpp: In function ‘void update(int, int)’:
user.cpp:6:29: 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:12:25: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for(; poz; poz-=(poz&(poz-1)^poz))
^
user.cpp: In function ‘int main()’:
user.cpp:33: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:34: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:36: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:39:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a);
^
user.cpp:44:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&op);
^
user.cpp:47: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:55:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&a);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 248kb | OK | 10 |
2 | 0ms | 252kb | OK | 10 |
3 | 4ms | 260kb | OK | 10 |
4 | 28ms | 344kb | OK | 10 |
5 | 64ms | 380kb | OK | 10 |
6 | 96ms | 504kb | OK | 10 |
7 | 108ms | 580kb | OK | 10 |
8 | 148ms | 636kb | OK | 10 |
9 | 152ms | 640kb | OK | 10 |
10 | 148ms | 636kb | OK | 10 |
Punctaj total | 100 |