Borderou de evaluare (job #2594681)

Utilizator betybety bety bety Data 6 aprilie 2020 15:17:04
Problema Undo Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 70

Raport evaluator

Compilare: main.cpp: In function 'void update(int, int, int)': main.cpp:22:41: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] for( ; px <= n; px += px ^ (px - 1) & px) ~~~~~~~~~^~~~ main.cpp:23:48: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] for(py = sy; py <= n; py += py ^ (py - 1) & py) ~~~~~~~~~^~~~ main.cpp: In function 'int query(int, int)': main.cpp:29:36: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] for( ; px; px -= px ^ (px - 1) & px) ~~~~~~~~~^~~~ main.cpp:30:46: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] for(py = sy; py; py -= py ^ (py - 1) & py) ~~~~~~~~~^~~~ main.cpp: In function 'int main()': main.cpp:59:30: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("undo.in","r",stdin); ^ main.cpp:60:32: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("undo.out","w",stdout); ^ main.cpp:62:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&m); ^ main.cpp:66:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&tip); ^ main.cpp:71:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&a,&b,&c); ^ main.cpp:80:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&a,&b); ^ main.cpp:87:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&steps); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
150ms24117kbOK10
265ms24641kbOK10
366ms24772kbOK10
4202ms28229kbOK10
5214ms28749kbOK10
6511ms45072kbMemory limit exceeded0
7755ms43937kbOK10
8626ms45072kbMemory limit exceeded0
9800ms43282kbOK10
10504ms45072kbMemory limit exceeded0
Punctaj total70

Ceva nu functioneaza?