Pagini recente » Borderou de evaluare (job #2724939) | Borderou de evaluare (job #1354408) | Borderou de evaluare (job #3233960) | Borderou de evaluare (job #1056997) | Borderou de evaluare (job #1489819)
Borderou de evaluare (job #1489819)
Raport evaluator
Compilare:
user.cpp: In function ‘void Dijkstra(char, int)’:
user.cpp:69:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
dist[__K[source_idx]] = 0;
^
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:115: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:117:19: note: in expansion of macro ‘INF’
memset(comb[i], INF, sizeof(int) * (1 << K));
^
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);
^
user.cpp:97:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &K, &N, &M);
^
user.cpp:99:73: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (int i = 1; i <= K; ++i) scanf("%d", &__K[i]), prisoner[__K[i]] = 1;
^
user.cpp:103:44: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d", &A, &B, &cost, &cnt);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 312kb | OK | 10 |
2 | 0ms | 324kb | OK | 10 |
3 | 0ms | 332kb | Incorect | 0 |
4 | 0ms | 360kb | Incorect | 0 |
5 | 4ms | 396kb | Incorect | 0 |
6 | 0ms | 396kb | Incorect | 0 |
7 | 4ms | 440kb | Incorect | 0 |
8 | 12ms | 840kb | Incorect | 0 |
9 | 44ms | 2292kb | Incorect | 0 |
10 | 44ms | 2292kb | Incorect | 0 |
Punctaj total | 20 |