Borderou de evaluare (job #1489819)

Utilizator theprdvtheprdv theprdv Data 22 septembrie 2015 07:02:06
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: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
10ms312kbOK10
20ms324kbOK10
30ms332kbIncorect0
40ms360kbIncorect0
54ms396kbIncorect0
60ms396kbIncorect0
74ms440kbIncorect0
812ms840kbIncorect0
944ms2292kbIncorect0
1044ms2292kbIncorect0
Punctaj total20

Ceva nu functioneaza?