Borderou de evaluare (job #819497)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cartier (clasa a 6-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 8 apr. 2025 18:32:39 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:52:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
52 | if ( prim[d] == 0 )
| ^~
main.c:54:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
54 | ultim[d] = i+1;
| ^~~~~
main.c:60:11: error: 'd1' undeclared (first use in this function)
60 | for ( d1 = 2; d1 <= 13000; d1++ )
| ^~
main.c:60:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:64:43: error: 'max2' undeclared (first use in this function); did you mean 'max'?
64 | fprintf(fout, "%d\n%d\n%d\n", cnt, s, max2);
| ^~~~
| max
main.c:11:34: warning: unused variable 'j' [-Wunused-variable]
11 | int n, l, x, s, max, cnt, i, j;
| ^
main.c:11:12: warning: unused variable 'l' [-Wunused-variable]
11 | int n, l, x, s, max, cnt, i, j;
| ^
main.c:15:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | fscanf(fin, "%d", &n);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:22:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
22 | fscanf(fin, "%d", &x);
| ^~~~~~~~~~~~~~~~~~~~~