Borderou de evaluare (job #692771)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Tai (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 4 feb. 2023 11:01:00 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:22:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
22 | for(int d=2;d*d<=n;d++)
| ^~~
main.cpp:25:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
25 | if(prim>0)
| ^~
main.cpp:25:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
main.cpp:27:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
27 | fout<<con;
| ^~~~
main.cpp:28:7: error: 'else' without a previous 'if'
28 | else
| ^~~~
main.cpp:9:21: warning: unused variable 'nmaxprim' [-Wunused-variable]
9 | int C,n,a,con=0,nmaxprim=0;
| ^~~~~~~~