Borderou de evaluare (job #642217)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Transport (clasa a 10-a) | Compilator | cpp-32 |
| Rundă | Status | evaluat | |
| Dată | 20 mar. 2022 11:04:05 | Scor | ascuns |
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:34:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
34 | fscanf(fin, "%d", &t);
| ~~~~~~^~~~~~~~~~~~~~~
main.cpp:35:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
35 | fscanf(fin, "%d%d", &n, &c);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~
main.cpp:37:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
37 | fscanf(fin, "%d%d", &stations[i].dist, &stations[i].cost);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~