Pagini recente » Borderou de evaluare (job #8693) | Borderou de evaluare (job #2977574) | Borderou de evaluare (job #558666) | Borderou de evaluare (job #479930) | Borderou de evaluare (job #2658419)
Borderou de evaluare (job #2658419)
Raport evaluator
Compilare:
main.cpp: In function 'void bellmanford()':
main.cpp:9:19: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
#define INF 1<<31 - 1
~~~^~~
main.cpp:25:20: note: in expansion of macro 'INF'
old_d.assign(n+1, INF);
^~~
main.cpp:38:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<arcs[current_node].size(); ++i) {
~^~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'bool dijkstra()':
main.cpp:9:19: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
#define INF 1<<31 - 1
~~~^~~
main.cpp:58:16: note: in expansion of macro 'INF'
d.assign(n+1, INF);
^~~
main.cpp:70:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<arcs[current_node].size(); ++i)
~^~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:9:19: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
#define INF 1<<31 - 1
~~~^~~
main.cpp:84:17: note: in expansion of macro 'INF'
if (d[dest] == INF)
^~~
main.cpp:9:19: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
#define INF 1<<31 - 1
~~~^~~
main.cpp:88:14: note: in expansion of macro 'INF'
current_d = INF;
^~~
main.cpp:57:9: warning: unused variable 'd_next_node' [-Wunused-variable]
int d_next_node;
^~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:105:32: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("fmcm.in", "r", stdin);
^
main.cpp:106:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("fmcm.out", "w", stdout);
^
main.cpp:109:43: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d", &n, &m, &source, &dest);
^
main.cpp:117:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d", &a, &b, &c, &e);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | OK | 10 | 10 |
2 | 2ms | 131kb | OK | 10 | 10 |
3 | 4ms | 262kb | OK | 10 | 10 |
4 | 3ms | 262kb | OK | 10 | 10 |
5 | 3ms | 262kb | OK | 10 | 10 |
6 | 603ms | 786kb | Time limit exceeded | 0 | 0 |
7 | 603ms | 786kb | Time limit exceeded | 0 |
8 | 603ms | 1310kb | Time limit exceeded | 0 | 0 |
9 | 602ms | 1310kb | Time limit exceeded | 0 |
10 | 603ms | 1310kb | Time limit exceeded | 0 |
Punctaj total | 50 |