Borderou de evaluare (job #1490041)
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 |
1 | 0ms | 244kb | OK | 10 |
2 | 0ms | 240kb | OK | 10 |
3 | 0ms | 252kb | OK | 10 |
4 | 0ms | 288kb | OK | 10 |
5 | 12ms | 320kb | OK | 10 |
6 | 12ms | 316kb | OK | 10 |
7 | 20ms | 368kb | OK | 10 |
8 | 40ms | 752kb | OK | 10 |
9 | 84ms | 2212kb | OK | 10 |
10 | 84ms | 2212kb | OK | 10 |
Punctaj total | 100 |