Pagini recente » Borderou de evaluare (job #414236) | Borderou de evaluare (job #2800470) | Borderou de evaluare (job #1971227) | Borderou de evaluare (job #660909) | Borderou de evaluare (job #1244978)
Borderou de evaluare (job #1244978)
Raport evaluator
Compilare:
user.cpp: In member function ‘void aho_corasick_automaton::add_word(const string&, int)’:
user.cpp:62: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()’:
user.cpp:93:69: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(k && !states[k].transitions[states[nod].letter])
^
user.cpp:96:60: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(states[k].transitions[states[nod].letter])
^
user.cpp:97:63: warning: array subscript has type ‘char’ [-Wchar-subscripts]
k=states[k].transitions[states[nod].letter];
^
user.cpp: In member function ‘void aho_corasick_automaton::fin()’:
user.cpp:117:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<states.size(); ++i)
^
user.cpp: In member function ‘int aho_corasick_automaton::run_automaton(const string&)’:
user.cpp:142:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<s.size(); ++i)
^
user.cpp:140:20: warning: unused variable ‘aux’ [-Wunused-variable]
int nod=0, aux;
^
user.cpp:152:5: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:178:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<automaton.states.size(); ++i)
^
user.cpp:180:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<automaton.states[i].word.size(); ++j)
^
user.cpp:159: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:160: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:164: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 | 436kb | OK | 5 |
2 | 0ms | 456kb | OK | 5 |
3 | 0ms | 448kb | OK | 5 |
4 | 0ms | 440kb | OK | 5 |
5 | 0ms | 440kb | OK | 5 |
6 | 44ms | 1276kb | OK | 5 |
7 | 80ms | 1528kb | OK | 5 |
8 | 92ms | 2064kb | OK | 5 |
9 | 92ms | 2592kb | OK | 5 |
10 | 92ms | 1792kb | OK | 5 |
11 | 92ms | 1276kb | OK | 5 |
12 | 96ms | 2056kb | OK | 5 |
13 | 40ms | 880kb | OK | 5 |
14 | 56ms | 1272kb | OK | 5 |
15 | 60ms | 1536kb | OK | 5 |
16 | 60ms | 1528kb | OK | 5 |
17 | 76ms | 1528kb | OK | 5 |
18 | 92ms | 1272kb | OK | 5 |
19 | 96ms | 2096kb | OK | 5 |
20 | Depăşit | 3820kb | Time limit exceeded. | 0 |
Punctaj total | 95 |