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