Borderou de evaluare (job #2074518)

Utilizator gapdanPopescu George gapdan Data 24 noiembrie 2017 18:24:19
Problema Algoritmul lui Dijkstra 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:85:50: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] if (cost[i] != inf) 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
10ms868kbOK10
20ms872kbOK10
30ms912kbOK10
40ms936kbOK10
524ms1416kbOK10
644ms1904kbOK10
760ms2228kbOK10
8136ms3976kbOK10
996ms3012kbOK10
10296ms6404kbOK10
Punctaj total100

Ceva nu functioneaza?