Pagini recente » Borderou de evaluare (job #1820014) | Borderou de evaluare (job #1766677) | Borderou de evaluare (job #2581831) | Borderou de evaluare (job #2162480) | Borderou de evaluare (job #1871916)
Borderou de evaluare (job #1871916)
Raport evaluator
Compilare:
user.cpp: In function ‘void make_sa()’:
user.cpp:33: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:35: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:35: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:40: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:40: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:21:9: warning: unused variable ‘p’ [-Wunused-variable]
int p;
^
user.cpp: In function ‘void make_ap()’:
user.cpp:45:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0, p = 0; i < v.size(); ++i)
^
user.cpp:46: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:74: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:129:29: warning: operation on ‘np’ may be undefined [-Wsequence-point]
str[np++] = 256 + np; }
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 520kb | OK | 5 |
2 | 0ms | 576kb | Incorect | 0 |
3 | 4ms | 772kb | OK | 5 |
4 | 32ms | 2136kb | Incorect | 0 |
5 | 20ms | 1616kb | Incorect | 0 |
6 | 28ms | 2108kb | Incorect | 0 |
7 | 224ms | 10008kb | OK | 5 |
8 | 484ms | 14024kb | Incorect | 0 |
9 | 368ms | 13224kb | Incorect | 0 |
10 | 528ms | 15332kb | Incorect | 0 |
11 | 408ms | 14972kb | OK | 5 |
12 | 632ms | 17072kb | Incorect | 0 |
13 | 500ms | 16676kb | Incorect | 0 |
14 | 744ms | 19592kb | Incorect | 0 |
15 | 868ms | 22276kb | Incorect | 0 |
16 | 992ms | 26988kb | Incorect | 0 |
17 | 1400ms | 31056kb | Incorect | 0 |
18 | 1736ms | 31820kb | Incorect | 0 |
19 | 1712ms | 35200kb | Incorect | 0 |
20 | Depăşit | 45356kb | Time limit exceeded. | 0 |
Punctaj total | 20 |