Borderou de evaluare (job #3303335)
| Utilizator | Data | 15 iulie 2025 11:40:38 | |
|---|---|---|---|
| Problema | Inv | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
In file included from /usr/include/c++/12.2.1/vector:64,
from /usr/include/c++/12.2.1/functional:62,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:71,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/stl_vector.h: In instantiation of 'struct std::_Vector_base<long long int, int>':
/usr/include/c++/12.2.1/bits/stl_vector.h:423:11: required from 'class std::vector<long long int, int>'
main.cpp:15:32: required from here
/usr/include/c++/12.2.1/bits/stl_vector.h:88:28: error: 'int' is not a class, struct, or union type
88 | rebind<_Tp>::other _Tp_alloc_type;
| ^~~~~~~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_vector.h:90:9: error: 'int' is not a class, struct, or union type
90 | pointer;
| ^~~~~~~
/usr/include/c++/12.2.1/bits/stl_vector.h: In instantiation of 'class std::vector<long long int, int>':
main.cpp:15:32: required from here
/usr/include/c++/12.2.1/bits/stl_vector.h:438:64: error: 'int' is not a class, struct, or union type
438 | static_assert(is_same<typename _Alloc::value_type, _Tp>::value,
| ^~~~~
/usr/include/c++/12.2.1/bits/stl_vector.h:513:20: error: '_M_allocate' has not been declared in 'std::vector<long long int, int>::_Base'
513 | using _Base::_M_allocate;
| ^~~~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_vector.h:514:20: error: '_M_deallocate' has not been declared in 'std::vector<long long int, int>::_Base'
514 | using _Base::_M_deallocate;
| ^~~~~~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_vector.h:516:20: error: '_M_get_Tp_allocator' has not been declared in 'std::vector<long long int, int>::_Base'
516 | using _Base::_M_get_Tp_allocator;
| ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/12.2.1/cassert:43,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:33:
/usr/include/c++/12.2.1/bits/stl_vector.h: In instantiation of 'constexpr std::_Vector_base<_Tp, _Alloc>::_Vector_impl::_Vector_impl() [with _Tp = long long int; _Alloc = int]':
main.cpp:18:5: required from here
/usr/include/c++/12.2.1/bits/stl_vector.h:137:24: error: 'int' is not a class, struct, or union type
137 | _Vector_impl() _GLIBCXX_NOEXCEPT_IF(
| ^~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'long long int AIB::query(int)':
main.cpp:26:23: error: no match for 'operator[]' (operand types are 'std::vector<long long int, int>' and 'int')
26 | sum += aib[i];
| ^
main.cpp: In member function 'void AIB::update(int, int)':
main.cpp:33:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int, int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | for(int i = x; i < aib.size(); i += lsb(i))
| ~~^~~~~~~~~~~~
main.cpp:34:16: error: no match for 'operator[]' (operand types are 'std::vector<long long int, int>' and 'int')
34 | aib[i] += add;
| ^
main.cpp: In function 'int main()':
main.cpp:45:12: warning: unused variable 'q' [-Wunused-variable]
45 | int n, q;
| ^
/usr/include/c++/12.2.1/bits/stl_vector.h: In instantiation of 'constexpr std::_Vector_base<_Tp, _Alloc>::_Vector_impl::_Vector_impl() [with _Tp = long long int; _Alloc = int]':
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
