Borderou de evaluare (job #692822)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Prime (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 4 feb. 2023 13:01:26 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:11:7: error: 'd' was not declared in this scope
11 | for ( d = 2; d * d <= N; d++ )
| ^
main.cpp:13:11: error: 'i' was not declared in this scope
13 | for ( i = d * d; i <= N; i = i + d )
| ^
main.cpp:13:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
13 | for ( i = d * d; i <= N; i = i + d )
| ^~~
main.cpp:15:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
15 | fout<<d<<"\n";
| ^~~~
main.cpp:15:13: error: 'd' was not declared in this scope
15 | fout<<d<<"\n";
| ^