Borderou de evaluare (job #2147623)
Utilizator | Data | 28 februarie 2018 21:02:29 | |
---|---|---|---|
Problema | Evaluarea unei expresii | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void PushOnStack(char)’:
user.cpp:126:17: error: ‘make_unique’ is not a member of ‘std’
rpnstack.push(std::make_unique<Operator>(ch));
^
user.cpp:126:42: error: expected primary-expression before ‘>’ token
rpnstack.push(std::make_unique<Operator>(ch));
^
user.cpp:135:21: error: ‘make_unique’ is not a member of ‘std’
rpn.emplace_back(std::make_unique<Operator>(rpnstack.top()->GetCh()));
^
user.cpp:135:46: error: expected primary-expression before ‘>’ token
rpn.emplace_back(std::make_unique<Operator>(rpnstack.top()->GetCh()));
^
user.cpp:139:17: error: ‘make_unique’ is not a member of ‘std’
rpnstack.push(std::make_unique<Operator>(ch));
^
user.cpp:139:42: error: expected primary-expression before ‘>’ token
rpnstack.push(std::make_unique<Operator>(ch));
^
user.cpp:143:21: error: ‘make_unique’ is not a member of ‘std’
rpn.emplace_back(std::make_unique<Operator>(rpnstack.top()->GetCh()));
^
user.cpp:143:46: error: expected primary-expression before ‘>’ token
rpn.emplace_back(std::make_unique<Operator>(rpnstack.top()->GetCh()));
^
user.cpp: In function ‘void Solve()’:
user.cpp:165:29: warning: NULL used in arithmetic [-Wpointer-arith]
for (i = 0; equation[i] != NULL; ++i) {
^
user.cpp:183:22: error: ‘make_unique’ is not a member of ‘std’
rpn.emplace_back(std::make_unique<Number>(currentNumber));
^
user.cpp:183:45: error: expected primary-expression before ‘>’ token
rpn.emplace_back(std::make_unique<Number>(currentNumber));
^
user.cpp:204:22: error: ‘make_unique’ is not a member of ‘std’
rpn.emplace_back(std::make_unique<Number>(currentNumber));
^
user.cpp:204:45: error: expected primary-expression before ‘>’ token
rpn.emplace_back(std::make_unique<Number>(currentNumber));
^
user.cpp:218:20: error: ‘make_unique’ is not a member of ‘std’
rpn.emplace_back(std::make_unique<Number>(currentNumber));
^
user.cpp:218:43: error: expected primary-expression before ‘>’ token
rpn.emplace_back(std::make_unique<Number>(currentNumber));
^
user.cpp:222:20: error: ‘make_unique’ is not a member of ‘std’
rpn.emplace_back(std::make_unique<Operator>(rpnstack.top()->GetCh()));
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !