Borderou de evaluare (job #1489989)

Utilizator theprdvtheprdv theprdv Data 22 septembrie 2015 16:06:05
Problema Gather Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘void Dijkstra(char, int)’: user.cpp:70:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] heap_ins(__K[source_idx], 0, cnt); ^ user.cpp:84: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:12:25: warning: integer overflow in expression [-Woverflow] #define INF (1 << 31) * 2 - 1 ^ user.cpp:112:22: note: in expansion of macro ‘INF’ memset(pr_dist[i], INF, sizeof (int) * (K + 1) * 16); ^ user.cpp:119:33: warning: integer overflow in expression [-Woverflow] unsigned int ans = (1 << 31) * 2 - 1; ^ user.cpp:12:25: warning: integer overflow in expression [-Woverflow] #define INF (1 << 31) * 2 - 1 ^ user.cpp:121:19: note: in expansion of macro ‘INF’ memset(comb[i], INF, sizeof(int) * (1 << K)); ^ user.cpp:12:25: warning: integer overflow in expression [-Woverflow] #define INF (1 << 31) * 2 - 1 ^ user.cpp:131: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:12:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] #define INF (1 << 31) * 2 - 1 ^ user.cpp:131: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:12:25: warning: integer overflow in expression [-Woverflow] #define INF (1 << 31) * 2 - 1 ^ user.cpp:131: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:12:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] #define INF (1 << 31) * 2 - 1 ^ user.cpp:131: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:95: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
10ms304kbOK10
20ms304kbOK10
30ms320kbIncorect0
40ms356kbIncorect0
54ms388kbIncorect0
60ms384kbIncorect0
74ms432kbIncorect0
812ms824kbIncorect0
948ms2280kbIncorect0
1044ms2276kbIncorect0
Punctaj total20

Ceva nu functioneaza?