Borderou de evaluare (job #3362749)
| Utilizator | Data | 12 august 2026 10:36:44 | |
|---|---|---|---|
| Problema | Lautari | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int f(int, int)':
main.cpp:18:18: error: 'k' was not declared in this scope
18 | if (d <= k) s += dr - st + 1;
| ^
main.cpp:18:21: error: 's' was not declared in this scope
18 | if (d <= k) s += dr - st + 1;
| ^
main.cpp:27:13: error: 's' was not declared in this scope
27 | s += dr - st + 1;
| ^
main.cpp:31:32: error: 's' was not declared in this scope
31 | return (n * (n + 1)) / 2 - s;
| ^
main.cpp:12:15: warning: unused variable 'sum' [-Wunused-variable]
12 | long long sum;
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
