Borderou de evaluare (job #610893)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Prime (clasa a 5-a) | Compilator | cpp-32 |
Rundă | lasm_19_10_2021_clasa12 | Status | evaluat |
Dată | 19 oct. 2021 12:30:33 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void eratostene()':
main.cpp:5:8: error: 'd' was not declared in this scope
5 | for ( d = 2; d * d <= 3000000; d++ )
| ^
main.cpp:7:10: error: 'i' was not declared in this scope
7 | for ( i = d * d; i <= 3000000; i = i + d )
| ^
main.cpp: In function 'int main()':
main.cpp:13:12: warning: unused variable 'd' [-Wunused-variable]
13 | int n, x, d, i, a;
| ^