Borderou de evaluare (job #1833291)

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

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 [18][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
10ms452kbOK5
28ms892kbOK5
38ms892kbOK5
464ms2788kbOK5
50ms856kbKilled by signal 11(SIGSEGV).0
60ms852kbKilled by signal 11(SIGSEGV).0
70ms860kbKilled by signal 11(SIGSEGV).0
80ms856kbKilled by signal 11(SIGSEGV).0
90ms988kbKilled by signal 11(SIGSEGV).0
100ms984kbKilled by signal 11(SIGSEGV).0
110ms988kbKilled by signal 11(SIGSEGV).0
120ms464kbOK5
130ms488kbOK5
140ms512kbOK5
150ms512kbOK5
1620ms1208kbOK5
1720ms1212kbOK5
188ms828kbOK5
198ms900kbOK5
208ms896kbOK5
Punctaj total65

Ceva nu functioneaza?