Borderou de evaluare (job #601466)

Utilizator avatar sinai2008 Belu Ianis sinai2008 IP ascuns
Problemă Secv (baraj gimnaziu) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 5 iul. 2021 11:56:30 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:42:9: error: 'deque' was not declared in this scope 42 | deque <int> dq; | ^~~~~ main.cpp:3:1: note: 'std::deque' is defined in header '<deque>'; did you forget to '#include <deque>'? 2 | #include <vector> +++ |+#include <deque> 3 | using namespace std; main.cpp:42:16: error: expected primary-expression before 'int' 42 | deque <int> dq; | ^~~ main.cpp:45:18: error: 'dq' was not declared in this scope 45 | if (!dq.empty() && dq.front() + k < i) dq.pop_front(); | ^~ main.cpp:48:25: error: 'dq' was not declared in this scope 48 | while (!dq.empty() && a[dq.back()] < a[i]) dq.pop_back(); | ^~ main.cpp:49:17: error: 'dq' was not declared in this scope 49 | dq.push_back(i); | ^~ main.cpp:51:19: error: 'dq' was not declared in this scope 51 | if (a[dq.front()] - v[i] > s) ++ans; | ^~