Borderou de evaluare (job #786795)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Centru Prim (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 17 sept. 2024 22:01:03 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:12:5: error: 'ifstream' was not declared in this scope
12 | ifstream fin(centruprim.in);
| ^~~~~~~~
main.cpp:13:5: error: 'ofstream' was not declared in this scope
13 | ofstream fout(centruprim.out);
| ^~~~~~~~
main.cpp:15:5: error: 'fin' was not declared in this scope
15 | fin>>a;
| ^~~
main.cpp:17:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
17 | if(a>100 && a<2000000000)
| ^~
main.cpp:23:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
23 | if(g%2==0)
| ^~
main.cpp:28:14: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
28 | else if(g%2==1)
| ^~
main.cpp:33:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
33 | if(primi(v)==2)
| ^~
main.cpp:34:17: error: 'fout' was not declared in this scope
34 | fout<<"1";
| ^~~~
main.cpp:36:17: error: 'fout' was not declared in this scope
36 | fout<<"0";
| ^~~~
main.cpp:37:9: error: 'fout' was not declared in this scope
37 | fout.close();
| ^~~~