Borderou de evaluare (job #1912609)

Utilizator paunmatei7FMI Paun Matei paunmatei7 Data 8 martie 2017 09:51:03
Problema Zmeu2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘void dijkstra()’: user.cpp:44:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(Viz[Node] == 0) ^ user.cpp:45:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] Viz[Node] = 1; ^ user.cpp:51:65: warning: array subscript has type ‘char’ [-Wchar-subscripts] for(vector < short int > :: iterator it = v[Node].begin(); it != v[Node].end() && ok == 0; ++it) ^ user.cpp:51:88: warning: array subscript has type ‘char’ [-Wchar-subscripts] for(vector < short int > :: iterator it = v[Node].begin(); it != v[Node].end() && ok == 0; ++it) ^ user.cpp:55:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(Dist[Node] + d[i] < Dist[i] && Cap + Capete[i] < n){ ^ user.cpp:56:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] Viz[Node] = 0; ^ user.cpp:57:44: warning: array subscript has type ‘char’ [-Wchar-subscripts] Dist[i] = Dist[Node] + d[i]; ^ user.cpp:41:19: warning: unused variable ‘Cost’ [-Wunused-variable] short int Cost = q.top().x; ^ user.cpp: In function ‘int main()’: user.cpp:69:41: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=] scanf("%d %d", &d[i], &Capete[i]); ^ user.cpp:69:41: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘char*’ [-Wformat=] user.cpp:65:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zmeu2.in", "r", stdin); ^ user.cpp:66:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zmeu2.out", "w", stdout); ^ user.cpp:67:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &n, &p, &k); ^ user.cpp:69:42: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &d[i], &Capete[i]); ^ user.cpp:72:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &A, &B); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms280kbOK10
20ms272kbOK10
312ms400kbKilled by signal 11(SIGSEGV).0
40ms264kbKilled by signal 11(SIGSEGV).0
58ms432kbOK10
60ms284kbIncorect0
70ms288kbOK10
80ms272kbIncorect0
90ms268kbKilled by signal 11(SIGSEGV).0
1012ms476kbKilled by signal 11(SIGSEGV).0
Punctaj total40

Ceva nu functioneaza?