Pagini recente » Borderou de evaluare (job #2773549) | Borderou de evaluare (job #1067302) | Borderou de evaluare (job #1838548) | Borderou de evaluare (job #2059083) | Borderou de evaluare (job #2652448)
Borderou de evaluare (job #2652448)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:10:19: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
#define INF 1<<31 - 1
~~~^~~
main.cpp:112:18: note: in expansion of macro 'INF'
distances[i] = INF;
^~~
main.cpp:121:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<arcs[a].size(); ++i)
~^~~~~~~~~~~~~~~
main.cpp:10:19: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
#define INF 1<<31 - 1
~~~^~~
main.cpp:135:29: note: in expansion of macro 'INF'
if (distances[i] == INF)
^~~
main.cpp:97:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.in", "r", stdin);
^
main.cpp:98:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.out", "w", stdout);
^
main.cpp:102:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
main.cpp:107:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &a, &b, &c);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 2ms | 131kb | OK | 10 |
| 2 | 2ms | 131kb | OK | 10 |
| 3 | 4ms | 131kb | OK | 10 |
| 4 | 5ms | 262kb | OK | 10 |
| 5 | 30ms | 917kb | OK | 10 |
| 6 | 56ms | 1441kb | OK | 10 |
| 7 | 78ms | 2228kb | OK | 10 |
| 8 | 159ms | 4050kb | OK | 10 |
| 9 | 125ms | 3932kb | OK | 10 |
| 10 | 314ms | 5898kb | OK | 10 |
| Punctaj total | 100 |