Borderou de evaluare (job #838746)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | AB (clasa a 8-a) | Compilator | cpp |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 25 oct. 2025 23:31:55 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:41:12: error: 'i' was not declared in this scope
41 | while (i <= n && j <= k) {
| ^
main.cpp:41:22: error: 'j' was not declared in this scope
41 | while (i <= n && j <= k) {
| ^
main.cpp:50:14: error: 'j' was not declared in this scope
50 | cout << (j > k ? i - k : 0) << "\n";
| ^
main.cpp:50:22: error: 'i' was not declared in this scope
50 | cout << (j > k ? i - k : 0) << "\n";
| ^