Borderou de evaluare (job #1887776)

Utilizator jordan1998Jordan jordan1998 Data 21 februarie 2017 19:20:42
Problema Algoritmul Bellman-Ford Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 35

Raport evaluator

Compilare: user.cpp: In function ‘void solve()’: user.cpp:46:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=0; j<v[nod].size(); j++) ^ user.cpp:36:10: warning: unused variable ‘i’ [-Wunused-variable] long i, j, nod, poz; ^ user.cpp: In function ‘int main()’: user.cpp:76:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d%d", &n, &m); ^ user.cpp:76:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:79:50: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d%d%d", &e[i].a, &e[i].b, &e[i].c); ^ user.cpp:79:50: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:79:50: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:90:30: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d ", cost[i]); ^ user.cpp:74:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bellmanford.in", "r", stdin); ^ user.cpp:75:44: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bellmanford.out", "w", stdout); ^ user.cpp:76:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &m); ^ user.cpp:79:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &e[i].a, &e[i].b, &e[i].c); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms852kbOK55
20ms852kbOK55
30ms860kbOK55
40ms864kbOK55
50ms880kbOK55
60ms864kbOK510
74ms856kbOK5
828ms1456kbOK50
9Depăşit1948kbTime limit exceeded.0
1012ms864kbOK5
1140ms1908kbOK50
12Depăşit3324kbTime limit exceeded.0
13Depăşit2660kbTime limit exceeded.0
14Depăşit4148kbTime limit exceeded.0
15Depăşit4884kbTime limit exceeded.00
16Depăşit3988kbTime limit exceeded.0
1716ms868kbOK5
18Depăşit5240kbTime limit exceeded.00
19Depăşit6188kbTime limit exceeded.0
2044ms892kbOK5
Punctaj total35

Ceva nu functioneaza?