Borderou de evaluare (job #2889332)
Utilizator | Data | 12 aprilie 2022 17:17:22 | |
---|---|---|---|
Problema | Vila 2 | 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:17:5: error: 'deque' was not declared in this scope
17 | deque<int> vmin, vmax;
| ^~~~~
main.cpp:4:1: note: 'std::deque' is defined in header '<deque>'; did you forget to '#include <deque>'?
3 | #include <vector>
+++ |+#include <deque>
4 |
main.cpp:17:11: error: expected primary-expression before 'int'
17 | deque<int> vmin, vmax;
| ^~~
main.cpp:25:17: error: 'vmax' was not declared in this scope
25 | while (!vmax.empty() && v[i] > v[vmax.front()])
| ^~~~
main.cpp:27:9: error: 'vmax' was not declared in this scope
27 | vmax.push_front(i);
| ^~~~
main.cpp:32:17: error: 'vmin' was not declared in this scope
32 | while (!vmin.empty() && v[i] <= v[vmin.front()])
| ^~~~
main.cpp:35:9: error: 'vmin' was not declared in this scope
35 | vmin.push_front(i);
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !