Pagini recente » Borderou de evaluare (job #2489708) | Borderou de evaluare (job #1892640) | Borderou de evaluare (job #1631173) | Borderou de evaluare (job #1207225) | Borderou de evaluare (job #1489989)
Borderou de evaluare (job #1489989)
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 |
1 | 0ms | 304kb | OK | 10 |
2 | 0ms | 304kb | OK | 10 |
3 | 0ms | 320kb | Incorect | 0 |
4 | 0ms | 356kb | Incorect | 0 |
5 | 4ms | 388kb | Incorect | 0 |
6 | 0ms | 384kb | Incorect | 0 |
7 | 4ms | 432kb | Incorect | 0 |
8 | 12ms | 824kb | Incorect | 0 |
9 | 48ms | 2280kb | Incorect | 0 |
10 | 44ms | 2276kb | Incorect | 0 |
Punctaj total | 20 |