Borderou de evaluare (job #1737858)
Utilizator | Data | 5 august 2016 08:33:06 | |
---|---|---|---|
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 infixTOpostfix(std::string&, std::string&)’:
user.cpp:40:47: error: ‘strchr’ was not declared in this scope
if(strchr("+-/*", infixExpression[pos]))
^
user.cpp:79:43: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘std::stack<char>::size_type {aka unsigned int}’ [-Wformat=]
std::printf("%ld ", opstack.size());
^
user.cpp: In function ‘long long int evaluatePostFix(std::string&)’:
user.cpp:98:43: error: ‘strchr’ was not declared in this scope
if(strchr("+-/*", expression[position]))
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !