Borderou de evaluare (job #858517)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Minge (clasa a 6-a) | Compilator | cpp |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 25 mar. 2026 20:45:04 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:13:9: error: 'b' was not declared in this scope
13 | b[x] = y;
| ^
main.cpp:14:21: error: 'a' was not declared in this scope
14 | if (i == 1) a[x] = 1;
| ^
main.cpp:15:9: error: 'a' was not declared in this scope
15 | a[y] = 1;
| ^
main.cpp:21:18: error: 'a' was not declared in this scope
21 | if (!a[i]) nr++;
| ^
main.cpp:28:21: error: 'b' was not declared in this scope
28 | if (b[j] == i) p = true;
| ^
main.cpp:30:17: error: 'a' was not declared in this scope
30 | if (a[i] && !p) {
| ^
main.cpp:38:2: error: expected '}' at end of input
38 | }
| ^
main.cpp:8:12: note: to match this '{'
8 | int main() {
| ^