Borderou de evaluare (job #632427)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Freelancing (clasa a 10-a) | Compilator | cpp-32 |
| Rundă | Status | evaluat | |
| Dată | 12 feb. 2022 23:25:27 | Scor | ascuns |
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:108:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
108 | fscanf(fin, "%d", &noTasks);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~
main.cpp:110:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
110 | fscanf(fin, "%d%d", &tasks[i].deadline, &tasks[i].profit), tasks[i].index = i;
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~