Borderou de evaluare (job #2887783)
Utilizator | Data | 10 aprilie 2022 11:36:12 | |
---|---|---|---|
Problema | Alibaba | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:12:10: error: 'stack' is not a member of 'std'
12 | std::stack<char> stiva;
| ^~~~~
main.cpp:4:1: note: 'std::stack' is defined in header '<stack>'; did you forget to '#include <stack>'?
3 | #include <vector>
+++ |+#include <stack>
4 |
main.cpp:12:16: error: expected primary-expression before 'char'
12 | std::stack<char> stiva;
| ^~~~
main.cpp:16:5: error: 'stiva' was not declared in this scope
16 | stiva.push(nr[0]);
| ^~~~~
main.cpp:32:10: error: 'reverse' is not a member of 'std'
32 | std::reverse(rez.begin(), rez.end());
| ^~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !