Pagini recente » Borderou de evaluare (job #715700) | Borderou de evaluare (job #2160086) | Borderou de evaluare (job #1912389) | Borderou de evaluare (job #1136815) | Borderou de evaluare (job #2322769)
Borderou de evaluare (job #2322769)
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 | 4ms | 1310kb | OK | 10 |
3 | 7ms | 1310kb | OK | 10 |
4 | 8ms | 1441kb | OK | 10 |
5 | 47ms | 1966kb | OK | 10 |
6 | 101ms | 2490kb | OK | 10 |
7 | 129ms | 2748kb | OK | 10 |
8 | 212ms | 4444kb | OK | 10 |
9 | 403ms | 3801kb | Time limit exceeded | 0 |
10 | 403ms | 7589kb | Time limit exceeded | 0 |
Punctaj total | 80 |