Borderou de evaluare (job #1720150)
Utilizator | Data | 21 iunie 2016 17:36:54 | |
---|---|---|---|
Problema | Evaluarea unei expresii | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:12:19: error: expected unqualified-id before ‘const’
struct _OPERATOR(const int& prio, const char&op) :prio { prio }, op{ op } {};
^
user.cpp:12:19: error: expected ‘)’ before ‘const’
user.cpp:12:65: error: expected unqualified-id before ‘,’ token
struct _OPERATOR(const int& prio, const char&op) :prio { prio }, op{ op } {};
^
user.cpp:12:76: error: expected unqualified-id before ‘{’ token
struct _OPERATOR(const int& prio, const char&op) :prio { prio }, op{ op } {};
^
user.cpp: In function ‘int main()’:
user.cpp:39:69: error: no matching function for call to ‘_OPERATOR::_OPERATOR(int&, char&)’
if (coada.size() < 2) stiva.push_back(OPERATOR(charprio, expr[i]));
^
user.cpp:39:69: note: candidates are:
user.cpp:9:16: note: _OPERATOR::_OPERATOR()
typedef struct _OPERATOR {
^
user.cpp:9:16: note: candidate expects 0 arguments, 2 provided
user.cpp:9:16: note: constexpr _OPERATOR::_OPERATOR(const _OPERATOR&)
user.cpp:9:16: note: candidate expects 1 argument, 2 provided
user.cpp:9:16: note: constexpr _OPERATOR::_OPERATOR(_OPERATOR&&)
user.cpp:9:16: note: candidate expects 1 argument, 2 provided
user.cpp:52:48: error: no matching function for call to ‘_OPERATOR::_OPERATOR(int&, char&)’
stiva.push_back(OPERATOR(charprio, expr[i]));
^
user.cpp:52:48: note: candidates are:
user.cpp:9:16: note: _OPERATOR::_OPERATOR()
typedef struct _OPERATOR {
^
user.cpp:9:16: note: candidate expects 0 arguments, 2 provided
user.cpp:9:16: note: constexpr _OPERATOR::_OPERATOR(const _OPERATOR&)
user.cpp:9:16: note: candidate expects 1 argument, 2 provided
user.cpp:9:16: note: constexpr _OPERATOR::_OPERATOR(_OPERATOR&&)
user.cpp:9:16: note: candidate expects 1 argument, 2 provided
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !