Pagini recente » Borderou de evaluare (job #882322) | Borderou de evaluare (job #3262799) | Borderou de evaluare (job #1045934) | Borderou de evaluare (job #2495813) | Borderou de evaluare (job #2237314)
Borderou de evaluare (job #2237314)
Raport evaluator
Compilare:
user.cpp: In member function ‘void Trie::add_word(std::__cxx11::string&)’:
user.cpp:58:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < word.size();i++){
~~^~~~~~~~~~~~~
user.cpp:64:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i == word.size() - 1){
~~^~~~~~~~~~~~~~~~~~
user.cpp: In member function ‘void Trie::remove_word_recursive(TrieNode*&, std::__cxx11::string&, int)’:
user.cpp:76:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(position == word.size()){
~~~~~~~~~^~~~~~~~~~~~~~
user.cpp:82:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(position == word.size() - 1){
~~~~~~~~~^~~~~~~~~~~~~~~~~~
user.cpp: In member function ‘int Trie::count_word(std::__cxx11::string&)’:
user.cpp:93:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < word.size();i++){
~~^~~~~~~~~~~~~
user.cpp:98:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i == word.size() - 1){
~~^~~~~~~~~~~~~~~~~~
user.cpp: In member function ‘int Trie::longest_prefix(std::__cxx11::string&)’:
user.cpp:108:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < word.size();i++){
~~^~~~~~~~~~~~~
user.cpp: In function ‘int main()’:
user.cpp:128:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("trie.in", "r", stdin);
^
user.cpp:129:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("trie.out", "w", stdout);
^
user.cpp:132:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", s);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 0ms | 1316kb | OK | 5 | 5 |
| 2 | 0ms | 1328kb | Incorect | 0 | 0 |
| 3 | 0ms | 1328kb | Incorect | 0 | 0 |
| 4 | 0ms | 1320kb | Incorect | 0 | 0 |
| 5 | 0ms | 1328kb | Incorect | 0 | 0 |
| 6 | 4ms | 1336kb | Incorect | 0 | 0 |
| 7 | 4ms | 1352kb | Incorect | 0 | 0 |
| 8 | 8ms | 1348kb | Incorect | 0 | 0 |
| 9 | 16ms | 1508kb | Incorect | 0 | 0 |
| 10 | 24ms | 2064kb | Incorect | 0 | 0 |
| 11 | 32ms | 1396kb | Incorect | 0 | 0 |
| 12 | 48ms | 2860kb | Incorect | 0 | 0 |
| 13 | 60ms | 2580kb | Incorect | 0 | 0 |
| 14 | 64ms | 1632kb | Incorect | 0 | 0 |
| 15 | 76ms | 1596kb | Incorect | 0 | 0 |
| 16 | 144ms | 12464kb | Incorect | 0 |
| 17 | 104ms | 1348kb | Incorect | 0 | 0 |
| 18 | 144ms | 9440kb | Incorect | 0 |
| 19 | 100ms | 1348kb | Incorect | 0 | 0 |
| 20 | 164ms | 16296kb | Incorect | 0 |
| Punctaj total | 5 |