Borderou de evaluare (job #2956297)
Utilizator | Data | 18 decembrie 2022 22:56:56 | |
---|---|---|---|
Problema | Vila 2 | Status | done |
Runda | cnsh_16_12 | Compilator | cpp-32 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:39:5: error: 'deque' was not declared in this scope
39 | deque<int> dq;
| ^~~~~
main.cpp:14:1: note: 'std::deque' is defined in header '<deque>'; did you forget to '#include <deque>'?
13 | #include <cstdlib>
+++ |+#include <deque>
14 |
main.cpp:39:11: error: expected primary-expression before 'int'
39 | deque<int> dq;
| ^~~
main.cpp:43:17: error: 'dq' was not declared in this scope
43 | while (!dq.empty() && age[dq.back()] <= age[i]) {
| ^~
main.cpp:47:9: error: 'dq' was not declared in this scope
47 | dq.push_back(i);
| ^~
main.cpp:51:17: error: 'dq' was not declared in this scope
51 | while (!dq.empty() && dq.front() < i - k) {
| ^~
main.cpp:54:17: error: 'dq' was not declared in this scope
54 | while (!dq.empty() && age[dq.back()] <= age[i]) {
| ^~
main.cpp:57:14: error: 'dq' was not declared in this scope
57 | if (!dq.empty())
| ^~
main.cpp:59:9: error: 'dq' was not declared in this scope
59 | dq.push_back(i);
| ^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !