Borderou de evaluare (job #858809)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Bomboane5 (clasa a 5-a) | Compilator | c |
| Rundă | Status | evaluat | |
| Dată | 2 apr. 2026 14:54:10 | Scor | ascuns |
Raport evaluator
Compilare:
main.c: In function 'main':
main.c:13:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | fscanf(fin, "%d%d%d%d", &cer, &nbomboane, &xcopii, &ybomboane);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:50:9: warning: 'maxbomboane' may be used uninitialized [-Wmaybe-uninitialized]
50 | fprintf(fout, "%d %d %d\n", rez, maxbomboane, nbomboane / maxbomboane);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:10:62: note: 'maxbomboane' was declared here
10 | int cer, nbomboane, xcopii, ybomboane, rez, minbomboane, maxbomboane, d;
| ^~~~~~~~~~~