Borderou de evaluare (job #2670631)
Utilizator | Data | 10 noiembrie 2020 12:45:58 | |
---|---|---|---|
Problema | Facebook Search | Status | done |
Runda | Arhiva ICPC | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void Insert(trieNode*&, std::__cxx11::string&, int)':
main.cpp:42:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<key.size(); i++)
~^~~~~~~~~~~
main.cpp: In function 'void UpdateRelevance(trieNode*&, std::__cxx11::string&, int)':
main.cpp:66:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<key.size(); i++)
~^~~~~~~~~~~
main.cpp: In function 'void getWord(trieNode*&, std::__cxx11::string&, int&)':
main.cpp:91:26: error: request for member 'compare' in 'node->trieNode::word', which is of non-class type 'int'
if (node -> word.compare(word) < 0)
^~~~~~~
main.cpp: In function 'void Query(trieNode*&, std::__cxx11::string&)':
main.cpp:103:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<key.size(); i++)
~^~~~~~~~~~~
main.cpp: At global scope:
main.cpp:140:26: error: too few arguments to function 'trieNode* getNode(trieNode*&)'
trieNode* root = getNode();
^
main.cpp:25:11: note: declared here
trieNode *getNode(trieNode* &p)
^~~~~~~
main.cpp: In function 'int main()':
main.cpp:154:30: error: too few arguments to function 'void Insert(trieNode*&, std::__cxx11::string&, int)'
Insert(root, name);
^
main.cpp:38:6: note: declared here
void Insert(trieNode* &root, string &key, int wordIndex)
^~~~~~
main.cpp:172:24: error: too few arguments to function 'trieNode* getNode(trieNode*&)'
root = getNode();
^
main.cpp:25:11: note: declared here
trieNode *getNode(trieNode* &p)
^~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !