Borderou de evaluare (job #2614894)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:64:33: warning: narrowing conversion of '(((int)n) - ((int)v.std::vector<_Tp, _Alloc>::at<item, std::allocator<item> >(1ul).item::heads))' from 'int' to 'short int' inside { } [-Wnarrowing]
PQ.push({1, v.at(1).time, n - v.at(1).heads});
~~^~~~~~~~~~~~~~~
main.cpp:78:48: warning: narrowing conversion of '(((int)save.heap::time) + ((int)v.std::vector<_Tp, _Alloc>::at<item, std::allocator<item> >(((std::vector<item>::size_type)it)).item::time))' from 'int' to 'short int' inside { } [-Wnarrowing]
PQ.push({it, save.time + v.at(it).time, save.heads - v.at(it).heads});
~~~~~~~~~~^~~~~~~~~~~~~~~
main.cpp:78:76: warning: narrowing conversion of '(((int)save.heap::heads) - ((int)v.std::vector<_Tp, _Alloc>::at<item, std::allocator<item> >(((std::vector<item>::size_type)it)).item::heads))' from 'int' to 'short int' inside { } [-Wnarrowing]
PQ.push({it, save.time + v.at(it).time, save.heads - v.at(it).heads});
~~~~~~~~~~~^~~~~~~~~~~~~~~~
main.cpp:81:23: warning: second operand of conditional expression has no effect [-Wunused-value]
fout << ans?ans:-1;
^
main.cpp:81:23: warning: third operand of conditional expression has no effect [-Wunused-value]
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 10 |
2 | 2ms | 131kb | Incorect | 0 |
3 | 20ms | 524kb | Incorect | 0 |
4 | 6ms | 655kb | OK | 10 |
5 | 11ms | 262kb | Incorect | 0 |
6 | 3ms | 131kb | OK | 10 |
7 | 5ms | 393kb | OK | 10 |
8 | 2ms | 131kb | OK | 10 |
9 | 87ms | 5136kb | Memory limit exceeded | 0 |
10 | 41ms | 1957kb | OK | 10 |
Punctaj total | 60 |