Borderou de evaluare (job #1490619)

Utilizator deea101Andreea deea101 Data 23 septembrie 2015 21:17:56
Problema BFS - Parcurgere in latime Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In constructor ‘Graph::Graph(unsigned int)’: user.cpp:1:14: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] #define oo (1<<31-1) ^ user.cpp:51:41: note: in expansion of macro ‘oo’ Graph(unsigned int s): size(s), dist(s,oo), seen(s,false) { ^ user.cpp: In member function ‘std::vector<int>* Graph::bfs(int)’: user.cpp:65:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0; i<v[x].size(); i++) { ^ user.cpp:1:14: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] #define oo (1<<31-1) ^ user.cpp:66:25: note: in expansion of macro ‘oo’ if(dist[v[x][i]] == oo) { ^ user.cpp: In function ‘int main()’: user.cpp:90:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1; i<res->size(); i++) ^ user.cpp:1:14: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] #define oo (1<<31-1) ^ user.cpp:91:19: note: in expansion of macro ‘oo’ if((*res)[i] == oo) g<<-1<<' '; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms416kbOK10
20ms412kbOK10
30ms416kbOK10
44ms488kbOK10
58ms580kbOK10
656ms1472kbOK10
7168ms2916kbOK10
8148ms3688kbOK10
9776ms9496kbOK10
10776ms9496kbOK10
Punctaj total100

Ceva nu functioneaza?