Borderou de evaluare (job #3194964)

Utilizator catalinmarincatalinmarin catalinmarin Data 19 ianuarie 2024 20:29:49
Problema Secventa 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:7:5: error: 'vector' was not declared in this scope 7 | vector<int> v; | ^~~~~~ main.cpp:3:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? 2 | #include <deque> +++ |+#include <vector> 3 | using namespace std; main.cpp:7:12: error: expected primary-expression before 'int' 7 | vector<int> v; | ^~~ main.cpp:14:9: error: 'v' was not declared in this scope 14 | v.push_back(x); | ^ main.cpp:17:31: error: 'v' was not declared in this scope 17 | while (!dq.empty() && v[dq.back()] > v[i]){ | ^ main.cpp:22:10: error: 'v' was not declared in this scope 22 | mn = v[dq.front()]; | ^ Non zero exit status: 1

Ceva nu functioneaza?