Borderou de evaluare (job #1833290)

Utilizator oldatlantianSerban Cercelescu oldatlantian Data 22 decembrie 2016 01:27:52
Problema Ghicit Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:27:27: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses] nlg+= int(!(i & i - 1)); ^ user.cpp:36:35: warning: capture of variable ‘p’ with non-automatic storage duration [enabled by default] sort(ssfx, ssfx + n, [lg, p](int a, int b) { return (p[lg - 1][a] == p[lg - 1][b]) ? (p[lg - 1][min(n, a + (1 << lg - 1))] < p[lg - 1][min(n, b + (1 << lg - 1))]) : (p[lg - 1][a] < p[lg - 1][b]); } ); ^ user.cpp:8:5: note: ‘int p [17][60005]’ declared here int p[LG + 1][SPQR], ssfx[SPQR]; ^ user.cpp: In lambda function: user.cpp:36:125: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] sort(ssfx, ssfx + n, [lg, p](int a, int b) { return (p[lg - 1][a] == p[lg - 1][b]) ? (p[lg - 1][min(n, a + (1 << lg - 1))] < p[lg - 1][min(n, b + (1 << lg - 1))]) : (p[lg - 1][a] < p[lg - 1][b]); } ); ^ user.cpp:36:164: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] sort(ssfx, ssfx + n, [lg, p](int a, int b) { return (p[lg - 1][a] == p[lg - 1][b]) ? (p[lg - 1][min(n, a + (1 << lg - 1))] < p[lg - 1][min(n, b + (1 << lg - 1))]) : (p[lg - 1][a] < p[lg - 1][b]); } ); ^ user.cpp: In function ‘int main()’: user.cpp:38:115: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] if (i > 0 && (p[lg - 1][ssfx[i - 1]] != p[lg - 1][ssfx[i]] || p[lg - 1][min(n, ssfx[i - 1] + (1 << lg - 1))] != p[lg - 1][min(n, ssfx[i] + (1 << lg - 1))])) ^ user.cpp:38:161: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] if (i > 0 && (p[lg - 1][ssfx[i - 1]] != p[lg - 1][ssfx[i]] || p[lg - 1][min(n, ssfx[i - 1] + (1 << lg - 1))] != p[lg - 1][min(n, ssfx[i] + (1 << lg - 1))])) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms444kbIncorect0
20ms448kbIncorect0
30ms448kbIncorect0
40ms768kbKilled by signal 11(SIGSEGV).0
50ms856kbKilled by signal 11(SIGSEGV).0
60ms852kbKilled by signal 11(SIGSEGV).0
70ms852kbKilled by signal 11(SIGSEGV).0
80ms848kbKilled by signal 11(SIGSEGV).0
90ms988kbKilled by signal 11(SIGSEGV).0
100ms984kbKilled by signal 11(SIGSEGV).0
110ms980kbKilled by signal 11(SIGSEGV).0
120ms472kbOK5
130ms496kbOK5
140ms516kbOK5
150ms516kbOK5
1620ms1208kbOK5
1720ms1212kbOK5
188ms832kbOK5
198ms900kbOK5
200ms444kbIncorect0
Punctaj total40

Ceva nu functioneaza?