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