Borderou de evaluare (job #2905696)
Utilizator | Data | 23 mai 2022 09:27:32 | |
---|---|---|---|
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:22:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
22 | while(!dq.empty() && v[dq.back()] >= v[i]);
| ^~~~~
main.cpp:23:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
23 | dq.pop_back();
| ^~
main.cpp:26:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
26 | while(!dq2.empty() && v[dq2.back()] <= v[i]);
| ^~~~~
main.cpp:27:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
27 | dq2.pop_back();
| ^~~
main.cpp:30:30: error: invalid types 'int [100001][<unresolved overloaded function type>]' for array subscript
30 | int x=v[dq.front()]-v[dq2.front];
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !