Borderou de evaluare (job #1490041)

Utilizator theprdvtheprdv theprdv Data 22 septembrie 2015 17:41:30
Problema Gather Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void Dijkstra(char, int)’: user.cpp:96:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] heap_ins(__K[source_idx], 0); ^ user.cpp:110:49: warning: array subscript has type ‘char’ [-Wchar-subscripts] for (int i = 1; i <= K; ++i) pr_dist[source_idx][i][cnt] = dist[__K[i]]; ^ user.cpp: In function ‘int main()’: user.cpp:13:26: warning: integer overflow in expression [-Woverflow] #define INF ((1 << 31) * 2 - 1) ^ user.cpp:159:61: note: in expansion of macro ‘INF’ if (x & (1 << k) && pr_dist[k + 1][j + 1][bits - 1] != INF && comb[k][x] != INF) ^ user.cpp:13:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] #define INF ((1 << 31) * 2 - 1) ^ user.cpp:159:61: note: in expansion of macro ‘INF’ if (x & (1 << k) && pr_dist[k + 1][j + 1][bits - 1] != INF && comb[k][x] != INF) ^ user.cpp:13:26: warning: integer overflow in expression [-Woverflow] #define INF ((1 << 31) * 2 - 1) ^ user.cpp:159:82: note: in expansion of macro ‘INF’ if (x & (1 << k) && pr_dist[k + 1][j + 1][bits - 1] != INF && comb[k][x] != INF) ^ user.cpp:13:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] #define INF ((1 << 31) * 2 - 1) ^ user.cpp:159:82: note: in expansion of macro ‘INF’ if (x & (1 << k) && pr_dist[k + 1][j + 1][bits - 1] != INF && comb[k][x] != INF) ^ user.cpp:121:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("gather.out", "w", stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms244kbOK10
20ms240kbOK10
30ms252kbOK10
40ms288kbOK10
512ms320kbOK10
612ms316kbOK10
720ms368kbOK10
840ms752kbOK10
984ms2212kbOK10
1084ms2212kbOK10
Punctaj total100

Ceva nu functioneaza?