Pagini recente » Borderou de evaluare (job #1498874) | Borderou de evaluare (job #1014104) | Borderou de evaluare (job #1315268) | Borderou de evaluare (job #578190) | Borderou de evaluare (job #2322787)
Borderou de evaluare (job #2322787)
Raport evaluator
Compilare:
main.cpp: In function 'void Dijkstra(int)':
main.cpp:5:17: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
#define oo 1<<31-1
~~^~
main.cpp:18:31: note: in expansion of macro 'oo'
for (i=1; i<=n; i++) d[i]=oo;
^~
main.cpp: In function 'int main()':
main.cpp:5:17: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
#define oo 1<<31-1
~~^~
main.cpp:55:22: note: in expansion of macro 'oo'
if ( d[i] != oo )printf ("%d ", d[i]);
^~
main.cpp:42:40: 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:43:42: 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:45:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d%d", &n, &m );
^
main.cpp:48:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &x, &y, &c);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 4ms | 1310kb | OK | 10 |
2 | 3ms | 1310kb | OK | 10 |
3 | 6ms | 1310kb | OK | 10 |
4 | 7ms | 1441kb | OK | 10 |
5 | 32ms | 1835kb | OK | 10 |
6 | 58ms | 2359kb | OK | 10 |
7 | 76ms | 2621kb | OK | 10 |
8 | 175ms | 4313kb | OK | 10 |
9 | 124ms | 3801kb | OK | 10 |
10 | 321ms | 6025kb | OK | 10 |
Punctaj total | 100 |