Borderou de evaluare (job #628515)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Prime (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 28 ian. 2022 20:00:07 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void Ciur()':
main.cpp:8:14: error: 'd' was not declared in this scope
8 | for (d = 2; d * d <= 3000000; d++)
| ^
main.cpp:10:30: error: 'i' was not declared in this scope
10 | for (i = d * d; i <= 3000000; i = i + d)
| ^
main.cpp:12:9: error: 'a' was not declared in this scope
12 | a = x;
| ^
main.cpp:12:13: error: 'x' was not declared in this scope
12 | a = x;
| ^
main.cpp: In function 'int main()':
main.cpp:18:19: warning: unused variable 'd' [-Wunused-variable]
18 | int n, x, d, i, a;
| ^
main.cpp:18:22: warning: unused variable 'i' [-Wunused-variable]
18 | int n, x, d, i, a;
| ^