Borderou de evaluare (job #2079871)

Utilizator JohnnyKiteFlorin Smeu JohnnyKite Data 1 decembrie 2017 22:05:16
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:70:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] scanf("%d %d", noVertices, noEdges); ^ user.cpp:70:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=] user.cpp:74:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] scanf("%d %d %d", src, dest, distance); ^ user.cpp:74:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=] user.cpp:74:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘int’ [-Wformat=] user.cpp:80:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 2; i < distances.size(); ++i) { ^ user.cpp:70:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", noVertices, noEdges); ^ user.cpp:74:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", src, dest, distance); ^ user.cpp:70:37: warning: ‘noVertices’ is used uninitialized in this function [-Wuninitialized] scanf("%d %d", noVertices, noEdges); ^ user.cpp:70:37: warning: ‘noEdges’ is used uninitialized in this function [-Wuninitialized] user.cpp:25:52: warning: ‘src’ may be used uninitialized in this function [-Wmaybe-uninitialized] adjList[src].push_back(make_pair(dest, distance)); ^ user.cpp:73:7: note: ‘src’ was declared here int src, dest, distance; ^ user.cpp:74:41: warning: ‘dest’ may be used uninitialized in this function [-Wmaybe-uninitialized] scanf("%d %d %d", src, dest, distance); ^ user.cpp:74:41: warning: ‘distance’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms340kbKilled by signal 11(SIGSEGV).0
20ms340kbKilled by signal 11(SIGSEGV).0
30ms344kbKilled by signal 11(SIGSEGV).0
40ms344kbKilled by signal 11(SIGSEGV).0
50ms344kbKilled by signal 11(SIGSEGV).0
60ms348kbKilled by signal 11(SIGSEGV).0
70ms348kbKilled by signal 11(SIGSEGV).0
80ms344kbKilled by signal 11(SIGSEGV).0
90ms340kbKilled by signal 11(SIGSEGV).0
100ms340kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?