Borderou de evaluare (job #2072914)

Utilizator EuAlexOtaku Hikikomori EuAlex Data 22 noiembrie 2017 14:26:33
Problema Cc Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘void bellmanford()’: user.cpp:36:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int k = 0; k < g[from].size(); ++ k) { ^ user.cpp: In function ‘void dijkstra()’: user.cpp:64:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int k = 0; k < g[from].size(); ++ k) { ^ user.cpp: In function ‘int main()’: user.cpp:119:50: warning: narrowing conversion of ‘g[(j + n)].std::vector<_Tp, _Alloc>::size<Muchie, std::allocator<Muchie> >()’ from ‘std::vector<Muchie>::size_type {aka unsigned int}’ to ‘int’ inside { } [-Wnarrowing] g[i].push_back({j + n, g[j + n].size(), 0, 1, x}); ^ user.cpp:120:48: warning: narrowing conversion of ‘(g[i].std::vector<_Tp, _Alloc>::size<Muchie, std::allocator<Muchie> >() + 4294967295u)’ from ‘std::vector<Muchie>::size_type {aka unsigned int}’ to ‘int’ inside { } [-Wnarrowing] g[j + n].push_back({i, g[i].size() - 1, 0, 0, -x}); ^ user.cpp:125:40: warning: narrowing conversion of ‘g[i].std::vector<_Tp, _Alloc>::size<Muchie, std::allocator<Muchie> >()’ from ‘std::vector<Muchie>::size_type {aka unsigned int}’ to ‘int’ inside { } [-Wnarrowing] g[src].push_back({i, g[i].size(), 0, 1, 0}); ^ user.cpp:126:44: warning: narrowing conversion of ‘(g[src].std::vector<_Tp, _Alloc>::size<Muchie, std::allocator<Muchie> >() + 4294967295u)’ from ‘std::vector<Muchie>::size_type {aka unsigned int}’ to ‘int’ inside { } [-Wnarrowing] g[i].push_back({src, g[src].size() - 1, 0, 0, 0}); ^ user.cpp:130:48: warning: narrowing conversion of ‘g[dest].std::vector<_Tp, _Alloc>::size<Muchie, std::allocator<Muchie> >()’ from ‘std::vector<Muchie>::size_type {aka unsigned int}’ to ‘int’ inside { } [-Wnarrowing] g[i + n].push_back({dest, g[dest].size(), 0, 1, 0}); ^ user.cpp:131:51: warning: narrowing conversion of ‘(g[(i + n)].std::vector<_Tp, _Alloc>::size<Muchie, std::allocator<Muchie> >() + 4294967295u)’ from ‘std::vector<Muchie>::size_type {aka unsigned int}’ to ‘int’ inside { } [-Wnarrowing] g[dest].push_back({i + n, g[i + n].size() - 1, 0, 0, 0}); ^ user.cpp:108:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cc.in", "r", stdin); ^ user.cpp:109:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cc.out", "w", stdout); ^ user.cpp:111:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:117:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms292kbOK10
20ms292kbOK10
30ms296kbOK10
40ms336kbOK10
50ms260kbKilled by signal 11(SIGSEGV).0
60ms264kbKilled by signal 11(SIGSEGV).0
70ms264kbKilled by signal 11(SIGSEGV).0
80ms264kbKilled by signal 11(SIGSEGV).0
90ms268kbKilled by signal 11(SIGSEGV).0
100ms260kbKilled by signal 11(SIGSEGV).0
Punctaj total40

Ceva nu functioneaza?