Borderou de evaluare (job #2658419)

Utilizator akumariaPatrascanu Andra-Maria akumaria Data 13 octombrie 2020 22:34:30
Problema Flux maxim de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 50

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
12ms131kbOK1010
22ms131kbOK1010
34ms262kbOK1010
43ms262kbOK1010
53ms262kbOK1010
6603ms786kbTime limit exceeded00
7603ms786kbTime limit exceeded0
8603ms1310kbTime limit exceeded00
9602ms1310kbTime limit exceeded0
10603ms1310kbTime limit exceeded0
Punctaj total50

Ceva nu functioneaza?