Borderou de evaluare (job #2074506)

Utilizator gapdanPopescu George gapdan Data 24 noiembrie 2017 18:12:13
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 20

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:85:30: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d ", cost[i]); ^ user.cpp:74:39: 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); ^ user.cpp:75:41: 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); ^ 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
10ms872kbOK10
20ms876kbIncorect0
30ms916kbIncorect0
40ms936kbIncorect0
524ms1416kbIncorect0
644ms1900kbIncorect0
764ms2228kbIncorect0
8136ms3972kbIncorect0
996ms3012kbOK10
10292ms6404kbIncorect0
Punctaj total20

Ceva nu functioneaza?