Borderou de evaluare (job #2847026)

Utilizator redstonegamer22Andrei Ion redstonegamer22 Data 10 februarie 2022 00:26:16
Problema Datorii Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

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
188ms827kbCorect!20
288ms802kbCorect!20
388ms802kbCorect!20
488ms827kbCorect!20
588ms802kbCorect!20
Punctaj total100

Ceva nu functioneaza?