Borderou de evaluare (job #3278654)

Utilizator Andrada_MincaAndrada Minca Andrada_Minca Data 20 februarie 2025 13:40:42
Problema Secventa 3 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'double bs(double)': main.cpp:17:5: error: 'deque' was not declared in this scope 17 | deque<int>dq; | ^~~~~ main.cpp:9:1: note: 'std::deque' is defined in header '<deque>'; did you forget to '#include <deque>'? 8 | #include <fstream> +++ |+#include <deque> 9 | using namespace std; main.cpp:17:11: error: expected primary-expression before 'int' 17 | deque<int>dq; | ^~~ main.cpp:22:17: error: 'INT_MAX' was not declared in this scope 22 | double ans=-INT_MAX; | ^~~~~~~ main.cpp:9:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 8 | #include <fstream> +++ |+#include <climits> 9 | using namespace std; main.cpp:29:20: error: 'dq' was not declared in this scope 29 | while(!dq.empty()&&v[dq.front()]>v[ri])dq.pop_front(); | ^~ main.cpp:30:13: error: 'dq' was not declared in this scope 30 | dq.push_front(ri); | ^~ main.cpp:32:16: error: 'dq' was not declared in this scope 32 | while(!dq.empty() && dq.back()<=i-u) dq.pop_back(); | ^~ main.cpp:33:13: error: 'dq' was not declared in this scope 33 | if(!dq.empty()) | ^~ main.cpp: In function 'int main()': main.cpp:62:18: error: 'setprecision' was not declared in this scope 62 | fout<<fixed<<setprecision(2)<<best; | ^~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?