Borderou de evaluare (job #2231040)
Utilizator | Denis Ehorovici Denisache | Data | 12 august 2018 19:09:23 |
---|---|---|---|
Problema | Xor Max | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:101:28: error: invalid initialization of non-const reference of type ‘std::__cxx11::string& {aka std::__cxx11::basic_string<char>&}’ from an rvalue of type ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’
trie.Insert(toBinaryString(0), { 0, 0 });
~~~~~~~~~~~~~~^~~
user.cpp:76:7: note: initializing argument 1 of ‘void Trie::Insert(std::__cxx11::string&, const BestXorInfo&)’
void Insert(string& insertedString, const BestXorInfo& insertedInfo) {
^~~~~~
user.cpp:111:45: error: invalid initialization of non-const reference of type ‘std::__cxx11::string& {aka std::__cxx11::basic_string<char>&}’ from an rvalue of type ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’
BestXorInfo bestXorInfo = trie.GetBestXor(string(binaryRepr));
^~~~~~~~~~~~~~~~~~
user.cpp:80:14: note: initializing argument 1 of ‘BestXorInfo Trie::GetBestXor(std::__cxx11::string&)’
BestXorInfo GetBestXor(string& queriedString) {
^~~~~~~~~~
user.cpp:127:17: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system("pause");
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !