Borderou de evaluare (job #3348743)
| Utilizator | Data | 23 martie 2026 20:04:03 | |
|---|---|---|---|
| Problema | Bool | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'std::vector<std::__cxx11::basic_string<char> > tokenize(const std::string&)':
main.cpp:24:59: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
24 | if(i == 0 || (s[i - 1] == ' ' || s[i - 1] == '(') && isalnum(s[i]))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:171:32: error: too many arguments to function 'bool compute_postfix(const std::vector<std::__cxx11::basic_string<char> >&)'
171 | cout << compute_postfix(postfix_tokens, values);
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:98:6: note: declared here
98 | bool compute_postfix(const vector<string> &postfix_tokens)
| ^~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
