Borderou de evaluare (job #805765)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Trei Divizori (clasa a 6-a) | Compilator | cpp-32 |
Rundă | oli_cntv_9 | Status | evaluat |
Dată | 24 ian. 2025 09:43:42 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:19: error: expected ',' or ';' before 'x'
7 | int n, a, i, nd=1 x, d=2, k=0, b;
| ^
main.cpp: In function 'int main()':
main.cpp:16:9: error: 'b' was not declared in this scope
16 | b=a;
| ^
main.cpp:17:15: error: 'd' was not declared in this scope; did you mean 'nd'?
17 | while(d*d<=b)
| ^
| nd
main.cpp:19:13: error: 'x' was not declared in this scope
19 | x=0;
| ^
main.cpp:37:13: error: 'k' was not declared in this scope
37 | k++;
| ^
main.cpp:40:12: error: 'k' was not declared in this scope
40 | fcout<<k;
| ^