Borderou de evaluare (job #1520351)

Utilizator iordache.bogdanIordache Ioan-Bogdan iordache.bogdan Data 8 noiembrie 2015 17:10:14
Problema Politia Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp:14:33: warning: overflow in implicit constant conversion [-Woverflow] const char destination = 4005 - 1; ^ user.cpp: In function ‘bool bfs()’: user.cpp:88:36: warning: passing NULL to non-pointer argument 2 of ‘void* memset(void*, int, size_t)’ [-Wconversion-null] memset(parent, NULL, sizeof parent); ^ user.cpp:102:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] for (Edge edge : graph[curr]) { ^ user.cpp:104:41: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (edge.saturated || parent[edge.adj] != NULL || edge.adj == source) ^ user.cpp:107:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] parent[edge.adj] = edge.opposed; ^ user.cpp:115:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] return parent[destination] != NULL; ^ user.cpp: In function ‘char getMaxFlow()’: user.cpp:125:53: warning: array subscript has type ‘char’ [-Wchar-subscripts] for (list<Edge>::iterator temp = graph[destination].begin(); temp != graph[destination].end(); ++temp) { ^ user.cpp:125:89: warning: array subscript has type ‘char’ [-Wchar-subscripts] for (list<Edge>::iterator temp = graph[destination].begin(); temp != graph[destination].end(); ++temp) { ^ user.cpp:127:52: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (temp->opposed->saturated || parent[temp->adj] == NULL) ^ user.cpp:132:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] for (Edge *edge = parent[temp->adj]; edge != NULL; edge = parent[edge->adj]) { ^ user.cpp:132:78: warning: array subscript has type ‘char’ [-Wchar-subscripts] for (Edge *edge = parent[temp->adj]; edge != NULL; edge = parent[edge->adj]) { ^ user.cpp:149:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] for (Edge *edge = parent[temp->adj]; edge != NULL; edge = parent[edge->adj]) { ^ user.cpp:149:78: warning: array subscript has type ‘char’ [-Wchar-subscripts] for (Edge *edge = parent[temp->adj]; edge != NULL; edge = parent[edge->adj]) { ^ user.cpp: In function ‘int main()’: user.cpp:178:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] graph[node].push_back(Edge(doubleNode(node), false)); ^ user.cpp:179:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] graph[doubleNode(node)].push_back(Edge(node, true)); ^ user.cpp:181:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] graph[node].back().setOpposed(&graph[doubleNode(node)].back());
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms412kbKilled by signal 11(SIGSEGV).0
20ms416kbKilled by signal 11(SIGSEGV).0
30ms416kbKilled by signal 11(SIGSEGV).0
40ms412kbKilled by signal 11(SIGSEGV).0
50ms416kbKilled by signal 11(SIGSEGV).0
60ms416kbKilled by signal 11(SIGSEGV).0
70ms412kbKilled by signal 11(SIGSEGV).0
80ms412kbKilled by signal 11(SIGSEGV).0
90ms416kbKilled by signal 11(SIGSEGV).0
100ms416kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?