Borderou de evaluare (job #3164999)
Utilizator | Data | 4 noiembrie 2023 22:55:07 | |
---|---|---|---|
Problema | Evaluarea unei expresii | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:13:1: error: 'deque' does not name a type
13 | deque<char> D;
| ^~~~~
main.cpp: In function 'int eval()':
main.cpp:19:13: error: 'D' was not declared in this scope
19 | while (!D.empty() && (D.front() == '+' || D.front() == '-'))
| ^
main.cpp: In function 'int term()':
main.cpp:34:13: error: 'D' was not declared in this scope
34 | while (!D.empty() && (D.front() == '*' || D.front() == '/'))
| ^
main.cpp: In function 'int factor()':
main.cpp:47:9: error: 'D' was not declared in this scope
47 | if (D.empty())
| ^
main.cpp:50:9: error: 'D' was not declared in this scope
50 | if (D.front() == '(')
| ^
main.cpp:63:9: error: 'D' was not declared in this scope
63 | if (D.front() == '-')
| ^
main.cpp:66:13: error: 'D' was not declared in this scope
66 | while (!D.empty() && (D.front() >= '0' && D.front() <= '9'))
| ^
main.cpp: In function 'int main()':
main.cpp:80:9: error: 'D' was not declared in this scope
80 | D.push_back(it);
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !