Pagini recente » Borderou de evaluare (job #1693027) | Borderou de evaluare (job #108140) | Borderou de evaluare (job #663991) | Borderou de evaluare (job #2289806) | Borderou de evaluare (job #2847026)
Borderou de evaluare (job #2847026)
Raport evaluator
Compilare:
In file included from /usr/include/c++/10/cassert:44,
from main.cpp:3:
main.cpp: In instantiation of 'void ja::AdvancedDataStructures::FenwickTree::FenwickTree<DATA, OPS>::update(int32_t, DATA) [with DATA = long int; OPS = ops; int32_t = int]':
main.cpp:97:18: required from here
main.cpp:48:38: warning: comparison of integer expressions of different signedness: 'int32_t' {aka 'int'} and 'std::vector<long int, std::allocator<long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | jassert(1 <= position && position < data.size(), "position is out of bounds", position);
| ~~~~~~~~~^~~~~~~~~~~~~
main.cpp:48:4: note: in expansion of macro 'jassert'
48 | jassert(1 <= position && position < data.size(), "position is out of bounds", position);
| ^~~~~~~
main.cpp: In instantiation of 'DATA ja::AdvancedDataStructures::FenwickTree::FenwickTree<DATA, OPS>::query(int32_t, int32_t) [with DATA = long int; OPS = ops; int32_t = int]':
main.cpp:103:39: required from here
main.cpp:53:48: warning: comparison of integer expressions of different signedness: 'int32_t' {aka 'int'} and 'std::vector<long int, std::allocator<long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
53 | jassert(1 <= left && left <= right && right < data.size(), "left and right are not correct", left, right);
| ~~~~~~^~~~~~~~~~~~~
main.cpp:53:4: note: in expansion of macro 'jassert'
53 | jassert(1 <= left && left <= right && right < data.size(), "left and right are not correct", left, right);
| ^~~~~~~
main.cpp: In instantiation of 'void ja::AdvancedDataStructures::FenwickTree::FenwickTree<DATA, OPS>::_update(int32_t, DATA) [with DATA = long int; OPS = ops; int32_t = int]':
main.cpp:49:4: required from 'void ja::AdvancedDataStructures::FenwickTree::FenwickTree<DATA, OPS>::update(int32_t, DATA) [with DATA = long int; OPS = ops; int32_t = int]'
main.cpp:97:18: required from here
main.cpp:24:28: warning: comparison of integer expressions of different signedness: 'int32_t' {aka 'int'} and 'std::vector<long int, std::allocator<long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | jassert(1 <= poz && poz < data.size(), "poz out of bounds", poz);
| ~~~~^~~~~~~~~~~~~
main.cpp:24:4: note: in expansion of macro 'jassert'
24 | jassert(1 <= poz && poz < data.size(), "poz out of bounds", poz);
| ^~~~~~~
main.cpp:26:27: warning: comparison of integer expressions of different signedness: 'int32_t' {aka 'int'} and 'std::vector<long int, std::allocator<long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | for(int32_t i = poz; i < data.size(); i += lsb(i))
| ~~^~~~~~~~~~~~~
In file included from /usr/include/c++/10/cassert:44,
from main.cpp:3:
main.cpp: In instantiation of 'DATA ja::AdvancedDataStructures::FenwickTree::FenwickTree<DATA, OPS>::_query(int32_t) [with DATA = long int; OPS = ops; int32_t = int]':
main.cpp:54:18: required from 'DATA ja::AdvancedDataStructures::FenwickTree::FenwickTree<DATA, OPS>::query(int32_t, int32_t) [with DATA = long int; OPS = ops; int32_t = int]'
main.cpp:103:39: required from here
main.cpp:31:28: warning: comparison of integer expressions of different signedness: 'int32_t' {aka 'int'} and 'std::vector<long int, std::allocator<long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | jassert(0 <= poz && poz < data.size(), "poz out of bounds", poz);
| ~~~~^~~~~~~~~~~~~
main.cpp:31:4: note: in expansion of macro 'jassert'
31 | jassert(0 <= poz && poz < data.size(), "poz out of bounds", poz);
| ^~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 88ms | 827kb | Corect! | 20 |
2 | 88ms | 802kb | Corect! | 20 |
3 | 88ms | 802kb | Corect! | 20 |
4 | 88ms | 827kb | Corect! | 20 |
5 | 88ms | 802kb | Corect! | 20 |
Punctaj total | 100 |