Borderou de evaluare (job #1438356)

Utilizator flore77Simion Florentin flore77 Data 19 mai 2015 18:56:23
Problema Algoritmul Bellman-Ford Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 100

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
10ms864kbOK55
20ms864kbOK55
30ms872kbOK55
40ms872kbOK55
50ms896kbOK55
60ms880kbOK510
716ms880kbOK5
820ms1456kbOK515
948ms2036kbOK5
1036ms888kbOK5
1140ms1920kbOK520
12116ms3424kbOK5
1388ms2756kbOK5
14160ms4236kbOK5
15204ms4916kbOK515
16156ms4124kbOK5
1760ms880kbOK5
18240ms5348kbOK515
19292ms6232kbOK5
20212ms908kbOK5
Punctaj total100

Ceva nu functioneaza?