Borderou de evaluare (job #3174834)
Utilizator | Data | 25 noiembrie 2023 10:24:00 | |
---|---|---|---|
Problema | Secvdist | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:16: error: 'INT_MAX' was not declared in this scope
10 | int n,k,mink = INT_MAX,maxk=INT_MIN,j,lmax=-1;
| ^~~~~~~
main.cpp:5:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
4 | #include <vector>
+++ |+#include <climits>
5 | using namespace std;
main.cpp: In function 'int main()':
main.cpp:23:15: error: 'j' was not declared in this scope
23 | while(j<=i && v[dqmax.front()]-v[dqmin.front()]>k){
| ^
main.cpp:28:9: error: 'lmax' was not declared in this scope
28 | lmax = max(lmax,i-j+1);
| ^~~~
main.cpp:28:27: error: 'j' was not declared in this scope
28 | lmax = max(lmax,i-j+1);
| ^
main.cpp:30:13: error: 'lmax' was not declared in this scope
30 | fout << lmax;
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !