Borderou de evaluare (job #2416487)

Utilizator akaprosAna Kapros akapros Data 27 aprilie 2019 16:48:02
Problema Sortare prin comparare Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 20

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:3:23: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] #define Mask (1 << 8) - 1 ~~~~~~~~~^~~ main.cpp:26:45: note: in expansion of macro 'Mask' ++ frq[(v[i][t] >> (B * dig)) & Mask]; ^~~~ main.cpp:3:23: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] #define Mask (1 << 8) - 1 ~~~~~~~~~^~~ main.cpp:30:48: note: in expansion of macro 'Mask' int val = (v[i][t] >> (B * dig)) & Mask; ^~~~ main.cpp:18:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ main.cpp:20:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &v[i][0]);// = (a * v[i - 1][0] + b) % c; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms131kbOK520
22ms131kbOK5
32ms131kbOK5
42ms131kbOK5
53ms131kbIncorect00
63ms131kbIncorect0
73ms131kbIncorect0
83ms131kbOK5
988ms1835kbIncorect00
1092ms1835kbIncorect0
1168ms1835kbIncorect0
1282ms1835kbIncorect0
13311ms6160kbIncorect00
14276ms6160kbIncorect0
15268ms6160kbIncorect0
16280ms6160kbOK5
17227ms4063kbKilled by Signal 1100
18224ms4194kbKilled by Signal 110
19182ms4063kbKilled by Signal 110
20423ms9043kbOK5
Punctaj total20

Ceva nu functioneaza?