Borderou de evaluare (job #1488707)

Utilizator theprdvtheprdv theprdv Data 19 septembrie 2015 16:27:44
Problema Gather Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:71:46: warning: integer overflow in expression [-Woverflow] unsigned int fin_cnt = 0, ans = (1 << 31) * 2 - 1; ^ user.cpp:104:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if ((__bitset[node] == bitset && __dist[node] < cost) || cost >= ans) continue; ^ user.cpp:104:68: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if ((__bitset[node] == bitset && __dist[node] < cost) || cost >= ans) continue; ^ user.cpp:106:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (bitset == fin_cnt && ans > cost) ^ user.cpp:106:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (bitset == fin_cnt && ans > cost) ^ user.cpp:115:70: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if ((pos >= 0 && it->cnt < cnt) || cost + it->cost * (cnt + 1) > ans) continue; ^ user.cpp:69: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:74: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:78:14: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] mode[x] = 1; ^ user.cpp:83:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d", &A, &B, &C, &D); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms296kbOK10
20ms296kbIncorect0
30ms368kbKilled by signal 11(SIGSEGV).0
40ms376kbKilled by signal 11(SIGSEGV).0
50ms404kbKilled by signal 11(SIGSEGV).0
60ms404kbKilled by signal 11(SIGSEGV).0
70ms400kbKilled by signal 11(SIGSEGV).0
80ms396kbKilled by signal 11(SIGSEGV).0
90ms404kbKilled by signal 11(SIGSEGV).0
100ms400kbKilled by signal 11(SIGSEGV).0
Punctaj total10

Ceva nu functioneaza?