Borderou de evaluare (job #1871868)

Utilizator oldatlantianSerban Cercelescu oldatlantian Data 7 februarie 2017 18:27:03
Problema Frequent Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘void make_sa()’: user.cpp:32:31: warning: capture of variable ‘pos’ with non-automatic storage duration [enabled by default] sort(sa, sa + n, [lg, pos](const int &a, const int &b) { ^ user.cpp:8:5: note: ‘int pos [19][400005]’ declared here int pos[LG + 1][NMAX], ^ user.cpp: In lambda function: user.cpp:34:50: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] (pos[lg - 1][min(a + (1 << lg - 1), n)] < pos[lg - 1][min(b + (1 << lg - 1), n)]) : ^ user.cpp:34:91: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] (pos[lg - 1][min(a + (1 << lg - 1), n)] < pos[lg - 1][min(b + (1 << lg - 1), n)]) : ^ user.cpp: In function ‘void make_sa()’: user.cpp:39:101: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] if (pos[lg - 1][sa[i]] != pos[lg - 1][sa[i - 1]] || pos[lg - 1][min(n, sa[i] + (1 << lg - 1))] != pos[lg - 1][min(n, sa[i - 1] + (1 << lg - 1))]) ^ user.cpp:39:151: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] if (pos[lg - 1][sa[i]] != pos[lg - 1][sa[i - 1]] || pos[lg - 1][min(n, sa[i] + (1 << lg - 1))] != pos[lg - 1][min(n, sa[i - 1] + (1 << lg - 1))]) ^ user.cpp:20:9: warning: unused variable ‘p’ [-Wunused-variable] int p; ^ user.cpp: In function ‘void make_ap()’: user.cpp:44:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0, p = 0; i < v.size(); ++i) ^ user.cpp:45:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0; j <= v[i].size(); ++j, ++p) ^ user.cpp: In function ‘void trick()’: user.cpp:71:51: warning: capture of variable ‘lcv’ with non-automatic storage duration [enabled by default] sort(sorted_lcp.rbegin(), sorted_lcp.rend(), [lcv](const int &a, const int &b) { ^ user.cpp:9:5: note: ‘int lcv [400005]’ declared here lcv[NMAX], ^ user.cpp: In function ‘int main()’: user.cpp:126:29: warning: operation on ‘np’ may be undefined [-Wsequence-point] str[np++] = 256 + np; } ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms504kbOK5
20ms564kbOK5
34ms756kbOK5
440ms2088kbOK5
520ms1576kbOK5
636ms2060kbOK5
7248ms9768kbOK5
8788ms13648kbOK5
9428ms12896kbOK5
10856ms14940kbOK5
11460ms14612kbOK5
121120ms16624kbOK5
13600ms16276kbOK5
141372ms19088kbOK5
151064ms21716kbOK5
161140ms26344kbOK5
17Depăşit30332kbTime limit exceeded.0
18Depăşit30996kbTime limit exceeded.0
19Depăşit34344kbTime limit exceeded.0
20Depăşit41548kbTime limit exceeded.0
Punctaj total80

Ceva nu functioneaza?