Pagini recente » Borderou de evaluare (job #1520252) | Borderou de evaluare (job #3130609) | Borderou de evaluare (job #2456876) | Borderou de evaluare (job #1159480) | Borderou de evaluare (job #2757050)
Borderou de evaluare (job #2757050)
Raport evaluator
Compilare:
main.cpp: In member function 'void KMP::build(const string&)':
main.cpp:34:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1, len = 0; i < pattern.size(); p[i] = len, i++)
~~^~~~~~~~~~~~~~~~
main.cpp: In constructor 'KMP::KMP(const string&)':
main.cpp:29:16: warning: 'KMP::p' will be initialized after [-Wreorder]
vector<int> p;
^
main.cpp:28:17: warning: 'const string KMP::pattern' [-Wreorder]
const string pattern;
^~~~~~~
main.cpp:42:4: warning: when initialized here [-Wreorder]
KMP(const string& pattern) : p(pattern.size()), pattern(pattern)
^~~
main.cpp: In member function 'std::vector<int> KMP::run(const string&) const':
main.cpp:50:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0, j = 0; i < text.size(); i++)
~~^~~~~~~~~~~~~
main.cpp:54:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (j == pattern.size()) idxs.push_back(i - j + 1), j = p[j - 1];
~~^~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:72:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0, it = 1000; i<v.size() && it; i++, it--)
~^~~~~~~~~
main.cpp:64:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("strmatch.in", "r", stdin);
^
main.cpp:65:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("strmatch.out", "w", stdout);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | OK | 2 | 2 |
2 | 2ms | 131kb | OK | 2 | 2 |
3 | 2ms | 131kb | Incorect | 0 | 0 |
4 | 2ms | 131kb | Incorect | 0 | 0 |
5 | 2ms | 131kb | Incorect | 0 | 0 |
6 | 2ms | 131kb | Incorect | 0 | 0 |
7 | 2ms | 131kb | Incorect | 0 | 0 |
8 | 2ms | 131kb | Incorect | 0 | 0 |
9 | 3ms | 131kb | Incorect | 0 | 0 |
10 | 3ms | 131kb | OK | 2 | 2 |
11 | 2ms | 131kb | Incorect | 0 | 0 |
12 | 2ms | 131kb | OK | 2 | 2 |
13 | 3ms | 131kb | OK | 2 | 2 |
14 | 3ms | 131kb | Incorect | 0 | 0 |
15 | 2ms | 131kb | OK | 2 | 2 |
16 | 2ms | 131kb | Incorect | 0 | 0 |
17 | 2ms | 131kb | Incorect | 0 | 0 |
18 | 3ms | 131kb | OK | 2 | 2 |
19 | 2ms | 131kb | OK | 2 | 2 |
20 | 2ms | 131kb | Incorect | 0 | 0 |
21 | 17ms | 2105kb | Incorect | 0 | 0 |
22 | 31ms | 3715kb | Incorect | 0 |
23 | 22ms | 2203kb | Incorect | 0 |
24 | 19ms | 2269kb | Incorect | 0 |
25 | 16ms | 2113kb | Incorect | 0 |
26 | 23ms | 2289kb | Incorect | 0 |
27 | 22ms | 2301kb | Incorect | 0 |
28 | 18ms | 2220kb | Incorect | 0 |
29 | 20ms | 2101kb | Incorect | 0 |
30 | 28ms | 2387kb | Incorect | 0 |
31 | 28ms | 2387kb | Incorect | 0 | 0 |
32 | 23ms | 2187kb | Incorect | 0 |
33 | 20ms | 2007kb | Incorect | 0 |
34 | 23ms | 2297kb | Incorect | 0 |
35 | 24ms | 2301kb | Incorect | 0 |
36 | 17ms | 2170kb | Incorect | 0 |
37 | 23ms | 2187kb | Incorect | 0 |
38 | 20ms | 2269kb | Incorect | 0 |
39 | 20ms | 2269kb | Incorect | 0 |
40 | 19ms | 2203kb | Incorect | 0 |
41 | 21ms | 2101kb | Incorect | 0 | 0 |
42 | 18ms | 2101kb | Incorect | 0 |
43 | 22ms | 2105kb | Incorect | 0 |
44 | 22ms | 2187kb | Incorect | 0 |
45 | 19ms | 2269kb | Incorect | 0 |
46 | 20ms | 2387kb | Incorect | 0 |
47 | 21ms | 2289kb | Incorect | 0 |
48 | 24ms | 2297kb | Incorect | 0 |
49 | 65ms | 13344kb | Incorect | 0 |
50 | 59ms | 11694kb | OK | 2 |
Punctaj total | 16 |