Pagini recente » Borderou de evaluare (job #388988) | Borderou de evaluare (job #2906845) | Borderou de evaluare (job #1457859) | Borderou de evaluare (job #908959) | Borderou de evaluare (job #1236019)
Borderou de evaluare (job #1236019)
Raport evaluator
Compilare:
user.cpp: In member function ‘void aho_corasick_automaton::add_word(const string&, int)’:
user.cpp:59:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<s.size(); ++i)
^
user.cpp: In member function ‘void aho_corasick_automaton::build_fails(int)’:
user.cpp:83:65: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(k && !states[k].transitions[states[nod].letter])
^
user.cpp:90:56: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(states[k].transitions[states[nod].letter])
^
user.cpp:91:59: warning: array subscript has type ‘char’ [-Wchar-subscripts]
k=states[k].transitions[states[nod].letter];
^
user.cpp: In member function ‘int aho_corasick_automaton::run_automaton(const string&)’:
user.cpp:107:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<s.size(); ++i)
^
user.cpp:117:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<states[aux].word.size(); ++j)
^
user.cpp:105:18: warning: unused variable ‘aux’ [-Wunused-variable]
int k=0, aux;
^
user.cpp:121:5: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:128:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ahocorasick.in", "r", stdin);
^
user.cpp:129:44: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ahocorasick.out", "w", stdout);
^
user.cpp:133:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &n);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 448kb | OK | 5 |
2 | 0ms | 464kb | OK | 5 |
3 | 0ms | 460kb | OK | 5 |
4 | 0ms | 452kb | OK | 5 |
5 | 0ms | 456kb | OK | 5 |
6 | 44ms | 1296kb | OK | 5 |
7 | 84ms | 1552kb | OK | 5 |
8 | 96ms | 1816kb | OK | 5 |
9 | 96ms | 2580kb | OK | 5 |
10 | 92ms | 1812kb | OK | 5 |
11 | 92ms | 1296kb | OK | 5 |
12 | 92ms | 1816kb | OK | 5 |
13 | 56ms | 904kb | OK | 5 |
14 | 64ms | 1296kb | OK | 5 |
15 | 80ms | 1548kb | OK | 5 |
16 | Depăşit | 1640kb | Time limit exceeded. | 0 |
17 | Depăşit | 1636kb | Time limit exceeded. | 0 |
18 | Depăşit | 1508kb | Time limit exceeded. | 0 |
19 | Depăşit | 2084kb | Time limit exceeded. | 0 |
20 | Depăşit | 3792kb | Time limit exceeded. | 0 |
Punctaj total | 75 |