Borderou de evaluare (job #761634)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Divizor (clasa a 5-a) | Compilator | c-32 |
Rundă | Concurs 03 | IQ Academy | clasa a 5-a | Status | evaluat |
Dată | 11 feb. 2024 13:11:33 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:26:9: error: 'cm' undeclared (first use in this function); did you mean 'cn'?
26 | cm=m;
| ^~
| cn
main.c:26:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:27:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
27 | while (v>0)
| ^~~~~
main.c:31:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
31 | cn=n/v;
| ^~
main.c:9:33: warning: unused variable 'nrdivizor' [-Wunused-variable]
9 | int n, m, i, cninceput, cn, nrdivizor, v, max;
| ^~~~~~~~~
main.c:9:18: warning: variable 'cninceput' set but not used [-Wunused-but-set-variable]
9 | int n, m, i, cninceput, cn, nrdivizor, v, max;
| ^~~~~~~~~
main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | fscanf (fin, "%d", &n);
| ^~~~~~~~~~~~~~~~~~~~~~