Borderou de evaluare (job #2848075)
Utilizator | Data | 12 februarie 2022 09:45:57 | |
---|---|---|---|
Problema | Secventa 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:21:35: error: 's' was not declared in this scope
21 | for (int i = 1; i <= N; i++) {s
| ^
main.cpp:28:37: error: invalid operands of types 'int' and 'int [50010]' to binary 'operator-'
28 | if (i - K + 1 >= 1 && sp[i] - sp - K] > ans) {
| ~~~~~ ^ ~~
| | |
| int int [50010]
main.cpp:28:45: error: expected ')' before ']' token
28 | if (i - K + 1 >= 1 && sp[i] - sp - K] > ans) {
| ~ ^
| )
main.cpp:28:45: error: expected primary-expression before ']' token
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !