Borderou de evaluare (job #2905695)
Utilizator | Data | 23 mai 2022 09:26:44 | |
---|---|---|---|
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:23:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
23 | while(!dq.empty() && v[dq.back()] >= v[i]);
| ^~~~~
main.cpp:24:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
24 | dq.pop_back();
| ^~
main.cpp:27:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
27 | while(!dq2.empty() && v[dq2.back()] <= v[i]);
| ^~~~~
main.cpp:28:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
28 | dq2.pop_back();
| ^~~
main.cpp:31:30: error: invalid types 'int [100001][<unresolved overloaded function type>]' for array subscript
31 | 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 !