Pagini recente » Borderou de evaluare (job #164975) | Borderou de evaluare (job #705745) | Borderou de evaluare (job #2273249) | Borderou de evaluare (job #1734093) | Borderou de evaluare (job #2072914)
Borderou de evaluare (job #2072914)
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 |
1 | 0ms | 292kb | OK | 10 |
2 | 0ms | 292kb | OK | 10 |
3 | 0ms | 296kb | OK | 10 |
4 | 0ms | 336kb | OK | 10 |
5 | 0ms | 260kb | Killed by signal 11(SIGSEGV). | 0 |
6 | 0ms | 264kb | Killed by signal 11(SIGSEGV). | 0 |
7 | 0ms | 264kb | Killed by signal 11(SIGSEGV). | 0 |
8 | 0ms | 264kb | Killed by signal 11(SIGSEGV). | 0 |
9 | 0ms | 268kb | Killed by signal 11(SIGSEGV). | 0 |
10 | 0ms | 260kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 40 |