Borderou de evaluare (job #2416488)

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

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
53ms131kbOK520
63ms131kbOK5
73ms131kbOK5
83ms131kbOK5
988ms1835kbOK520
1085ms1835kbOK5
1185ms1835kbOK5
1269ms1835kbOK5
13277ms6160kbOK520
14261ms6160kbOK5
15264ms6160kbOK5
16266ms6029kbOK5
17380ms8912kbOK520
18365ms8912kbOK5
19349ms8912kbOK5
20414ms9043kbOK5
Punctaj total100

Ceva nu functioneaza?